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] Exclude child categories from POST listing (2 posts)

  1. sophiavancouver
    Posted 9 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
    Posted 9 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