///Dynamic WordPress menu items
Dynamic WordPress menu items 2019-08-11T18:19:58+03:00

How to create dynamic menu items

In this example, we will demonstrate how to use the [ifso] shortcode alongside existing top-level menu items.

Step 1 – Create an If-So trigger

  1. Navigate to If-So > Add new
  2. Select a condition
  3. Pate the following code in the version’s content field.
    <a href=""><Item-name></a>

    Don’t forget to replace the link “” with your page link.

  4. Publish, and then copy the trigger’s shortcode

Step 2 – Add a new item to the menu

  1. Install the Shortcode in Menus plugin
  2. Create a new “Shortcode menu item”. Leave the title field blank and paste the If-So shortcode (from step 1) in the main content field

  • Was this Helpful ?
  • YesNo

Ready to get started?

See it working on your website! Try it free.