Support » Fixing WordPress » pages and categories.

  • Resolved nivesh



    I’d like to setup my blog in a way, where it has multiple pages and multiple categories, one page with a few cateogries, and then another and then another.

    so if I post in a category, it should be published under the page its desired….for eg. page 1 should have category a, b, and c page 2 should have d, e f and page 3 should have xyz.

    so If on a day I post something in a, d and z it should be published in page 1-category a, page 2 category d and page 3 category z.

    I tried many times, but no matter what I am not able to assign a page as a category parent, all pages remain empty and the posts keep adding themselves according to the category they are being published in.

    any help would be appreciated.



Viewing 2 replies - 1 through 2 (of 2 total)
  • Wrong thinking.
    Pages are not meant to display your categories. Use Category_Templates instead.

    Not sure how to pull that off…. But I’m looking to do the same exact thing…. When I figure it out I’ll update this post.

    Have your categories display instead of pages.

    Simply edit your header.php (or where ever your wp_list_pages tag resides)

    Look For (header.php):

    wp_list_pages('depth=1&sort_column=menu_order&title_li='); ?>

    Replace With:

        <?php wp_list_categories('depth=1exclude=300,700&title_li='); ?>

    This will list your Categories in the navigation section of your theme.

    If you wanted Categories & Pages to list:

      <?php wp_list_pages('depth=1&sort_column=menu_order&title_li='); ?>
      <?php wp_list_categories('depth=1exclude=300,700&title_li='); ?>

    Hope this helps!
    [sig moderated]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pages and categories.’ is closed to new replies.