Custom post types or pages?
I’m setting up a site that will have themed parties. Each party has its own pages/sub-pages. I’ve been trying to query the video page of the themes for a video archive but having no success. I’m starting to wonder if creating a custom post type would be a better implementation.
My main reason for setting up pages was because all the sub-pages need to be children of the main theme page. For the most part each section is as follows:
So all of the unique themes will have consistent sub-sections but each unique theme may not have each sub-section (so some may not have favors, for example).
The question is, I guess, can I accomplish this with custom post types or am I missing something in my query for the video archives? I’ve added a function to allow categories on the page editor but that doesn’t seem to be working for me.
Here’s the query I’m using:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$pages = array(
'post_type' => 'page',
'category_name' => 'vid-archives',
'order' => 'asc',
'posts_per_page' => '5',
'paged' => $paged
- The topic ‘Custom post types or pages?’ is closed to new replies.