답변:
당신의 register_post_type전화에, 당신은 다음과 같은 논쟁이 있는지 확인하십시오 :
register_post_type(
'my_post_type',
array(
'hierarchical' => true,
'public' => true,
'rewrite' => array(
'slug' => 'my_post_type',
'with_front' => false,
),
'supports' => array(
'page-attributes' /* This will show the post parent field */,
'title',
'editor',
'something-else',
),
// Other arguments
)
);
퍼머 링크가 플러시되었는지 확인하십시오 (설정> 퍼머 링크 페이지를 방문하십시오).
이제 새를 만들 때 my_post_type부모를 다른 부모로 설정하면 영구 링크가 다음과 같이 보입니다.
http://example.com/parent-post-type/my-post-type/
당신은 당신이 필요로 많은 수준을 갈 수 있습니다.