• aeryn7

    (@aeryn7)


    Hello,

    I am using the SimplePress WP theme and I have added a new category. The issue is I only want my categories (Natural Health) to be visible in the sidebar widget, not on the nav menu. How do I block categories from showing on the menu?

    Thanks for your help

    TNB
    https://www.brasilcoconutwater.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • robsonfgjunior

    (@robsonfgjunior)

    First you should be using the new Wp_Nav_Menu function that was released with wordpress 3.0. That would give you full control over your menu.

    Anyways, if you are using the wp_list_categories function to generate your menu then you simply need to add an exclude like this:

    <?php wp_list_categories( ‘exclude=3,4,5’ ); ?>

    3,4,5 are the ids of the categories you want to block from the menu.

    Thread Starter aeryn7

    (@aeryn7)

    Ah TY,
    Yes, I just created a custom menu and added it. The only issue I have now is that I designated some of the pages as “children” and these are not showing up as drop down menus. I have selected “Automatically add new top-level pages”, but this does not appear to be helping.

    Can you assist?
    https://www.brasilcoconutwater.com

    Thread Starter aeryn7

    (@aeryn7)

    Hello,

    Does anyone know of a work around for the above issue?

    Thanks very much!

    https://www.brasilcoconutwater.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing categories from Nav menu’ is closed to new replies.