WordPress.org

Ready to get started?Download WordPress

Forums

displaying archive of parent & all sub categories (1 post)

  1. medicus
    Member
    Posted 7 years ago #

    As far as I understand, is_category() checks whether the category's archive page is being displayed, and in_category() checks whether a post has a specific category ID.

    How can I filter a post so that it will be from a parent category or any sub categories thereof (except by listing in_category() for every sub category ID)?

Topic Closed

This topic has been closed to new replies.

About this Topic