• Resolved tamar

    (@tamar)


    I’d like to create a menu item that specifically excludes one Posts category on WordPress but includes all other categories. Is this remotely possible? If so, how can I do it?

    • This topic was modified 6 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes there an option on the add menu items option named categories. Just select the option and place check marks beside the ones you want and leave the rest unchecked.

    • This reply was modified 6 years, 4 months ago by mrtom414.
    • This reply was modified 6 years, 4 months ago by mrtom414.
    Thread Starter tamar

    (@tamar)

    Okay, thanks @mrtom414, I know that – but that’s not what I’m asking.

    I want ONE menu item, ONE, that consolidates ALL categories. In other words, I click on “Blog” and it includes ALL blog categories EXCEPT for my Podcast, which I want to be on a separate category.

    I’m not asking how to add only some categories to a menu as separate items. I want to create a menu item that opens up a page that includes a consolidated group of categories–except one.

    I can’t even figure out the URL for this:
    domain.com/blog/category/whatever would obviously work to speak to a single category.
    domain.com/blog/all/content/except/one/category doesn’t work.

    So – is this possible to do with menus or not?

    Thread Starter tamar

    (@tamar)

    bump

    I think you would probably need to see if there a filter in wordpress to support this behavior then code the filter in your functions.php file. There is a wp_nav_menu_items filter in the codex. I haven’t used it before so you would have to do some research to see if it will work for your needs.

    Thread Starter tamar

    (@tamar)

    Solved. Added a function to list all posts in the blog without the specific category in functions.php in my child theme, and linked the excluded category separately.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Creating a menu that excludes a specific category’ is closed to new replies.