WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Hide posts in subcategories (4 posts)

  1. AdamWills
    Member
    Posted 6 years ago #

    I'm working on creating a template, and can't seem to find any resolution to this.

    I'm working on a category page, and am looking for a way to display only the posts that are directly in the current category. If the posts are in a subdirectory, I do not want them displayed.

    Any ideas?

  2. Mark Ratledge
    Forum Moderator
    Posted 6 years ago #

  3. AdamWills
    Member
    Posted 6 years ago #

    I've searched through both pages previously, to no avail. I can display the posts for the current category, but it also displays posts in any subcategories, and I can't seem to figure out a way to not display them.

  4. Mark Ratledge
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic