Reputation: 1
I would like to insert all the custom post type in one page and the pagination. I just can call one custom post type. What can I do?enter image description here
Upvotes: 0
Views: 38
Reputation: 71
What @vel is referring to is the fact that if you want to call more than one custom post type, you need to place them in an array, as he demonstrated.
Let’s say you have two custom post types: event
and book
.
You would then place these post types in your array like so:
$args = array(
'post_type' => array( 'event', 'book' ),
);
I hope that helps.
Upvotes: 2