Forums

Excluding certain posts from their parent categories (3 posts)

  1. dbyrks
    Member
    Posted 1 year ago #

    Hello,

    I have been playing around with this all day, and have been getting really frustrated. Let's say I have a Parent Category called Dogs on my site. Within that category, I have a few child categories, such as German Shepherds, Terriers, and so on. I have many posts in the Terrier child category.

    When I click on the Dog Category, it shows me all of the Posts that have been made in that category, including all the child categories underneath it. I would like to exclude particular posts from appearing in the Parent category. I only want them to appear when you click on the child category, Terriers, for example.

    Can anyone show me how to do this?

    The theme I'm using only has an archive.php file. Do I need to create a category-dogs.php file and include some code to exclude particular posts? Thank you.

  2. dbyrks
    Member
    Posted 1 year ago #

    Anyone?

  3. stuartnorfolk
    Member
    Posted 1 year ago #

    Hi - did you get an answer to your query? I am experiencing the same dilema...

    Stuart

Topic Closed

This topic has been closed to new replies.

About this Topic