Support

Account

Home Forums Backend Issues (wp-admin) Menu Item location rules to NOT appear on a child item?

Unread

Menu Item location rules to NOT appear on a child item?

  • Say I have a menu structure like this:

    • Parent
    • Parent
      • Child
      • Child
      • Child
    • Parent
    • Parent
      • Child
      • Child
      • Child
    • Parent
    • Parent

    I am trying to add a field group to only show up on PARENT menu items. Or, menu items that are not a child.

    I’m able to add a Location rule for:

    Rules
    Show this field group if
    – Menu Item
    is equal to
    – Main Menu

    As menu_items are stored in the posts table I was sneakily hoping that I could use the posts parent/child condition to detect if something was a child item, but adding that condition just makes the field group not show at all.

    Is there any trick I can use here? Or would I need to look in to custom Location rules? (Not sure if the values I would need would be exposed for menu items).

    Any advice would be much appreciated, thanks.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.