Conditional Menu Items

You can use conditional tags to optionally show or hide menu items. These tags are based on the conditional functions included in WordPress. Each tag targets a function which is executed and returns true or false. If the condition returns false, the menu item will be removed and not displayed on your site.

You can write your own conditional functions into the theme. Simply create a PHP function which returns a true or false value. Save it to the “functions.php” file and reference it using the same formatting formula as the other conditionals.

Related Events

[events_calendar long_events=0 ]