Prevent catagory children from showing on frontpage. (4 posts)

  1. jthusgaard
    Posted 10 years ago #


    How do I prevent catagory children from showing up on the frontpage. I want only parent catagories to show on the frontpage.

  2. Michael Bishop

    Posted 10 years ago #

    Sorta depends on your theme, and how the category list is passed. Basically though, you simply need to pass the proper parameter to the Template Tag.

    If you need more assistance, just check back in this thread.

  3. jthusgaard
    Posted 10 years ago #

    where do I put the: <?php wp_list_cats('arguments'); ?>

  4. Michael Bishop

    Posted 10 years ago #

    Assuming your theme is like most blogs, your categories are listed in your sidebar. In that case, you'll be editing the sidebar.php file in your themes folder. And know that 'arguments' won't be part of what you paste into the sidebar, rather you need to determine the actual parameters you want, such as <?php wp_list_cats('sort_columns=name&children=0'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic