How to Add Conditional Menus to WordPress

FavoriteLoadingAdd to favorites


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.

Related posts:

  1. How to Use Conditional Widgets with WordPress and Why They’re Awesome Have you ever wanted to display different widgets within your…
  2. Beginner’s Guide to WordPress Menus Learn to easily control your site’s navigation menus….
  3. How to Highlight the Current Page when Using WordPress Navigation Menus WordPress 3.0 brought us a shiny new navigation system with…


Categories: Tutorials, Wordpress

Subscribe

Subscribe to this Journal

Subscribe to our Saturday morning digest of each week's new content. ITS FREE!

Email address