You can reuse the same idea as used here (how WordPress creates custom query pages), so creating pages for custom post types is not a difficult task. You must query the custom post type, and then display the query posts in the post type or multiple post types. This post will show you how to create a word press page map for a custom post type. Paging is similar to this numeric paging. Create a custom query to get all custom post types, and then display custom post types and loops and number pagination.
The first step in creating a custom post type is to create a custom post type using the following code:\/**
*Custom post type – register_post_type ()
*@Description njengah tutorial custom post type example
*@Link- https:\/\/gist.github.com\/Njengah\/839466b773085ac2430772e081357cee
*
*\/
Add_action (\
Function njengah_tutorial_cpt (){
$labels = array(
\
\
\
\
\
\
\
\
\
\
\
\
\
\
);
$args = array(
\
‘labels’ => $labels,
\
\
\
\
\
\
\
\
\
\
“capability_type”=>“page”,
\
\
\
‘supports’ => array( ‘title’, ‘editor’, ‘author’, ‘thumbnail’, ‘comments’, ‘revisions’, ‘page-attributes’, ‘custom-fields’ )
);
Register_post_type (\
}Function. After adding to the PHP file, you will see that the WordPress dashboard displays the custom post type \
Male: this code conforms to the specific custom post type
$paged > $range+1 && $showitems
« First
\
If ($paged > 1 & $showitems androg & lsaquo; Li Qian androg);
($i=1; $i <?php
/**
* 템플릿 이름: 튜토리얼 템플릿
*/
get_header();
이제 아래와 같이 페이지 속성 템플릿 옵션에 사용자 정의 페이지 템플릿이 표시됩니다.
= $paged+$range+1 || $i \
}
}
if ($paged
if ($paged