WEBFI-WordPress-How to Add Conditional Logic to Menus in WordPress

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.

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

Text version of this tutorial:

Check us out on Facebook:

Follow us on Twitter:

Join our circle on Google+:

Checkout our website for more WordPress Tutorials

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



  • Subhan Hamid on May 26, 2015

    Thank you, it it does improve my skills.

  • dude3sasha on May 27, 2015

    when u r a beginner, every little matters, great short vids

  • varun gupta on March 24, 2016

    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?

  • Sean Morley on June 23, 2016

    Love it, quick, to the point, works… anything on the pages front? If page? that would be a great complimentary plugin

  • MD Apu on September 1, 2017


  • OK, I can create "Log in" and "Register" pages with module codes.

    But how to set up "Log out" in the menu???
    I cannot create "Log out" page, because I don't know what to put on it.

  • Asterio on May 25, 2021

    thank you, very concise

WhatsApp us
Live Chat

Office hours operation Mon-Sun 8:00 am ET – 4:00 pm ET

To start your Premium WP or Cpanel service, use our domain search engine, if the domain you want is available, contact us by Whats app to activate your project.

The easiest, fastest, and most secure way to communicate with us.
Please enter your domain.
Please verify that you are not a robot.

Terms Privacy