Support

Account

Home Forums Backend Issues (wp-admin) Conditional field based on taxonomy

Unread

Conditional field based on taxonomy

  • I have a custom post type (defined in a JSON file) that includes a taxonomy field, and I want another field to show conditionally based on the taxonomy selected, but it doesn’t seem to work.

    “conditional_logic”: [
    [
    {
    “field”: “taxonomy_field_key”,
    “operator”: “==”,
    “value”: “10”
    }
    ]
    ]

    It doesn’t matter whether I put the ID as a string or a numeric value, or the actual taxonomy name, i.e. “banking”. The conditional field will never show. Is there a way to do this in the JSON without using something like a filter in functions.php?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.