WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Exclude child categories from POST listing (2 posts)

  1. sophiavancouver
    Member
    Posted 7 years ago #

    Hi there,
    I'm looking for a way to list only the parent post categories as links in the header of my home page. I know I can exclude specific child categories or include only specific categories in wp_list_categories, but I'd vastly prefer the list to be dynamic, so that I don't have to update the header code if someone creates a new parent or child category.

    I've been searching for a solution to this, and it seems there are a few but they're specific to pages only and not posts. Any one got a solution to how to omit any post category with a parent from a list?

  2. sophiavancouver
    Member
    Posted 7 years ago #

    I found the fold categories plugin and widget which give me what I need in the sidebar but not at page top. I'll have to hard code some standard links there I guess.

Topic Closed

This topic has been closed to new replies.

About this Topic