이인가 나에게 도움을 주시기 바랍니다 http://domain.com/real-estate-news/phuket-luxury-property-in-high-demand-ms/xyz
같은 새로운 URL을 생성하고 워드 프레스 섹션 쿼리 VAR를 추가하는 방법
echo $wp_query->query_vars['name']; // print "phuket-luxury-property-in-high-demand-ms"
echo $wp_query->query_vars['category_name']; // print "real-estate-news"
echo $wp_query->query_vars['section']; //print "xyz"
같은 쿼리 VAR에 XYZ를 싶어 할 사용자 정의 게시 유형? 그렇다면 옵션보다 더 많은 옵션이 있습니다. register_post_type() 배열 내에서 'rewrite'에 대한 인수를 입력하여 슬러그 이름을 변경하고 해당 CPT에 대한 특정 다시 쓰기 규칙을 해킹 할 수 있습니다. 나는이 프로젝트를 복잡성 때문에 멀리두고, 당신이 대답을 찾으면 그것을 듣고 싶습니다. 그 문제에 관한 나의 메모가 있습니다.
shibashake.com2
shibashake.com1
dreamdare.org
register_post_type(array(
//options
'rewrite' => array(
'slug' => 'beach', //a slug used to identify the post type in URLs.
'with_front' => false,
'feed' => true,
'pages' => true
),
는 잘못된 정보가 저자 스스로가 제공됩니다 자주 wp.tutsplus 조심하십시오.
wp.tutsplus.com
아니요, 맞춤 용지 유형이 아닙니다. 이것은 간단한 게시물입니다. –