How to Add Conditional Menus to WordPress


Using the built in WordPress navigation menus is the most convenient way to handle custom menus since the 3.0 release. Since then, developers have written all kinds of plugins to add additional functionality to this theme feature.

If Menu is the latest plugin written to extend WordPress navigation menus. It allows you to show or hide individual menu items based on conditional statements, such as whether or not a user is logged in, various user roles, and the type of content being viewed, (ie, front page, single, page).

When the plugin is enabled, each menu item will get a new checkbox option to “Enable Conditional Logic”.

The plugin currently includes several conditional statements and the developer will be adding more in future releases. You can also add your own by following the instructions on the FAQ page.

If you need to apply conditional logic to individual menu items within the native WordPress navigation menus, this plugin offers you the easiest way to do that. Download the If Menu plugin for free from the WordPress plugin repository.

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Appointments Plugin

Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more

Featured Plugin - WordPress Ecommerce Shopping Cart Plugin

Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Comments (5)

  1. Not bad. The plugin offers a fairly basic approach to conditional menu items placement. The average user may find use for this. For a bit more of an advanced approach alternatives could be sought out.

  2. It took a month for the plugin author to respond, but here it is:

    Andrei
    Plugin Author
    Posted 2 hours ago #

    Hi,

    Unfortunately, the API support for menus is not so good, and just one Walker can be assigned for editing menu items.

    When another plugin/theme is hooked to the ‘edit-menu-item’, this plugin disabled

Participate