Help with Wordpress Categories Please

Discussion in 'WordPress' started by jfarmer, Jul 29, 2008.

  1. #1
    I have set up a bunch of categories and sub categories my problem is that every post I make in the child categories shows up in the parent categories.


    How can I make a category called courses, that will have a simple description only and several child categories that will have detailed posts that dont show in the courses category as well?



    Im using Wordpres 2.6
     
    jfarmer, Jul 29, 2008 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's not easy because it defeats the whole purpose of subcategories. Anyway, you could edit the sidebar to remove the categories widget and make a customized one, like this:
    
    <div class="widget-title">Courses</div>
    <div class="widget">			
       <ul>
          <?php wp_list_categories('child_of=ID&title_li='); ?>
       </ul>
    </div>
    
    Code (markup):
    Replace ID with the category number (found in the URL as ?cat=ID).
    There must be no posts in the parent category, otherwise it will show up. It will also hide subcategories that have no posts.
     
    Cash Nebula, Aug 1, 2008 IP