How to Add Conditional Logic to Menus in WordPress

generic Lamotrigine online

Do you want to show different navigation menu items for different pages in WordPress? Possilby showing a different menu for logged in or not users. In this video, we will show you how to add conditional login to menus in WordPress.

buy prednisone for cats If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

http://pottervalley.org/wp-json/oembed/1.0/embed?url=http://pottervalley.org/ Text version of this tutorial:
http://www.wpbeginner.com/plugins/how-to-add-conditional-logic-to-menus-in-wordpress/

Check us out on Facebook:
https://www.facebook.com/wpbeginner

Follow us on Twitter:

Join our circle on Google+:
https://plus.google.com/+wpbeginner/

Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com/

Summary of this Tutorial:

Start by installing and activating the if menu plugin.

Then go to Appearance, Menus to edit your menus.

For the pages in your menu you’ll see the enable conditional logic and to show or hide them you would want to set the options.

When you are finished, save your menus and your menus will show based on your specified conditions.

Related Links:

If Menu

If Menu – Visibility control for Menu Items



source

5 thoughts on “How to Add Conditional Logic to Menus in WordPress”

  1. Great tutorial. Though, any idea how you'd go about creating a more custom php based condition? Something like, if the value of the variable is 1, the menu should link to page A, if the value of the variable is 0, it should link to a different page?

Leave a Reply

Your email address will not be published. Required fields are marked *