WordPress.org

Ready to get started?Download WordPress

Forums

Custom post types or pages? (2 posts)

  1. popstalin
    Member
    Posted 10 months ago #

    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:

    party-theme-01/decorations
    party-theme-01/favors
    party-theme-01/food
    party-theme-01/videos
    party-theme-01/activities
    party-theme-01/printables

    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
    );

  2. vtxyzzy
    Member
    Posted 9 months ago #

    There are several plugins that will let you add categories to Pages. For example: http://wordpress.org/plugins/map-categories-to-pages/

Reply

You must log in to post.

About this Topic