Support » How-To and Troubleshooting » Pages into categories?

Pages into categories?

  • Hey all. I just started my site http://www.onlythegames.com and I need some help with pages and categories.
    The current pages I have setup are meant to be categories, but I have no idea how to change this. Let’s say I post a news article that pertains to both ‘PS3 News’ and ‘Xbox 360 News’, I would like these to show up in the appropriate categories — exactly where I have the pages.
    How do I replace the pages section with categories?
    And, how would I relocate the pages somewhere else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • nono5551212


    Not sure how to relocate the pages somewhere else.

    But to have Categories display where your Pages do in your navigation.
    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]

    You may have your answer, but in case the question isn’t just about how to LIST categories rather than Pages, but how to turn a Page into a category Post…

    If you’ve accidentally used Pages (Write>Page) rather than Posts (Write>Posts), I don’t think you *can* convert a Page into a Post. Granted… they are all posts but creating posts that are for categories creates extra metadata that is stored about the post.

    You may be able to use Tags added to your pages? I’d read up on that. There are ways to call posts (including pages) based on tags.


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