Support » Fixing WordPress » How to make a category page display only 1st level content?

  • Suppose I have the category structure like this:

    Parent > Child 1 > Child 2

    I want to show only the category ‘Child 1’ listed directly under ‘Parent’ inside ‘Parent’ category page.

    Same rule goes for ‘Child 1’ category page.

    However for the page ‘Child 2’ (which has no child category) page I want to display all the contents listed under that category.

    So the rule looks like this: IF {Category contains Child Categories, show the Categories} ELSE {Show the contents}

    How to do this?

  • The topic ‘How to make a category page display only 1st level content?’ is closed to new replies.