
ps_add_locallink 함수의 첫 번째 인자로 사용되는 $args 배열에는 다음과 같은 값이 포함되어야 합니다.
- 'type' : 링크 타입 (예: 'page', 'file', 'category', 'tag', 'custom')
- 'title' : 링크 제목
- 'url' : 링크 URL
- 'attributes' : 링크 속성 (예: target, rel, title)
예를 들어, 내부 페이지를 링크하는 경우 다음과 같이 사용할 수 있습니다.
#hostingforum.kr
php
$args = array(
'type' => 'page',
'title' => '내부 페이지',
'url' => '/내부-페이지',
'attributes' => array('target' => '_self')
);
ps_add_locallink($args);
이러한 값들을 포함하여 $args 배열을 구성하면 ps_add_locallink 함수가 정상적으로 작동할 것입니다.
2025-08-07 05:43