• Resolved ernexto

    (@ernexto)


    I’m writing to report a bug I’ve encountered with the Conditional Logic feature. I am unable to select a custom taxonomy as a condition rule within a field group.

    My Setup:

    1. I have created a Custom Post Type called veicolo.
    2. I have created a custom, non-hierarchical Taxonomy called tipologia_veicolo and correctly associated it with the veicolo CPT.
    3. I have created a Field Group (Dettagli Veicolo) that is correctly set to display on the veicolo CPT.

    The Issue: Inside the Field Group, I am trying to set up conditional logic for a field (e.g., a Tab or a Text field). My goal is to show this field only if the tipologia_veicolo taxonomy has a specific term selected (e.g., “Auto d’epoca”).

    However, when I set up the conditional logic rule (Show this field if...), the custom taxonomy tipologia_veicolo does not appear in the first dropdown list of available rules. The list only shows the other fields from the field group, but no taxonomies.

    Troubleshooting Steps Taken:

    • I have confirmed that the taxonomy is correctly associated with the CPT in the CPT’s settings.
    • I have confirmed that the CPT has support for title, editor, thumbnail, and custom-fields enabled.
    • I have created terms within the taxonomy.
    • I have tried hard-refreshing the page and clearing the cache.
    • I have tested for plugin conflicts by deactivating other plugins.

    Could you please look into this? I’m available to provide more information or the JSON export of my CPT/Taxonomy/Field Group if needed.

    Thank you for your time and assistance.

Viewing 1 replies (of 1 total)
  • Plugin Author Carlos Bravo

    (@cbravobernal)

    Hi there!

    Thanks for writing a so detailed description of the issue!

    As far as I know, there has never been the possibility of using anything different than another field for the conditional logic inside a field.

    However, it’s not the same, but could also work, you can use different Field Groups and use Location Rules to have something similar.

    That way you could use a Rule similar to “Show this field group if” and add these two options using the “and” operator.

    Post Type > Equal to > Veicolo – and

    Post Taxonomy > Equal to > Auto d’epoca.

    I attach the JSON.

    [
    {
    "key": "group_685c1758e72f4",
    "title": "Dettagli Veicolo",
    "fields": [
    {
    "key": "field_685c17591a018",
    "label": "Veicolo",
    "name": "Veicolo",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": [
    [
    {
    "operator": "",
    "value": ""
    }
    ]
    ],
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "",
    "maxlength": "",
    "allow_in_bindings": 0,
    "placeholder": "",
    "prepend": "",
    "append": ""
    },
    {
    "key": "field_685c181862164",
    "label": "Another Field",
    "name": "another_field",
    "aria-label": "",
    "type": "text",
    "instructions": "",
    "required": 0,
    "conditional_logic": [
    [
    {
    "operator": "",
    "value": ""
    }
    ]
    ],
    "wrapper": {
    "width": "",
    "class": "",
    "id": ""
    },
    "default_value": "a",
    "maxlength": "",
    "allow_in_bindings": 0,
    "placeholder": "",
    "prepend": "",
    "append": ""
    }
    ],
    "location": [
    [
    {
    "param": "post_type",
    "operator": "==",
    "value": "veicolo"
    },
    {
    "param": "post_taxonomy",
    "operator": "==",
    "value": "tipologia_veicolo:auto-depoca"
    }
    ]
    ],
    "menu_order": 0,
    "position": "normal",
    "style": "default",
    "label_placement": "top",
    "instruction_placement": "label",
    "hide_on_screen": "",
    "active": true,
    "description": "",
    "show_in_rest": 0
    },
    {
    "key": "taxonomy_685c170a3e847",
    "title": "Tipogias Veicolo",
    "menu_order": 0,
    "active": true,
    "taxonomy": "tipologia_veicolo",
    "object_type": [
    "veicolo"
    ],
    "advanced_configuration": 0,
    "import_source": "",
    "import_date": "",
    "labels": {
    "name": "Tipogias Veicolo",
    "singular_name": "Tipogia Veicolo",
    "menu_name": "Tipogias Veicolo",
    "all_items": "All Tipogias Veicolo",
    "edit_item": "Edit Tipogia Veicolo",
    "view_item": "View Tipogia Veicolo",
    "update_item": "Update Tipogia Veicolo",
    "add_new_item": "Add New Tipogia Veicolo",
    "new_item_name": "New Tipogia Veicolo Name",
    "search_items": "Search Tipogias Veicolo",
    "popular_items": "Popular Tipogias Veicolo",
    "separate_items_with_commas": "Separate tipogias veicolo with commas",
    "add_or_remove_items": "Add or remove tipogias veicolo",
    "choose_from_most_used": "Choose from the most used tipogias veicolo",
    "most_used": "",
    "not_found": "No tipogias veicolo found",
    "no_terms": "No tipogias veicolo",
    "name_field_description": "",
    "slug_field_description": "",
    "desc_field_description": "",
    "items_list_navigation": "Tipogias Veicolo list navigation",
    "items_list": "Tipogias Veicolo list",
    "back_to_items": "← Go to tipogias veicolo",
    "item_link": "Tipogia Veicolo Link",
    "item_link_description": "A link to a tipogia veicolo"
    },
    "description": "",
    "capabilities": {
    "manage_terms": "manage_categories",
    "edit_terms": "manage_categories",
    "delete_terms": "manage_categories",
    "assign_terms": "edit_posts"
    },
    "public": 1,
    "publicly_queryable": 1,
    "hierarchical": 0,
    "show_ui": 1,
    "show_in_menu": 1,
    "show_in_nav_menus": 1,
    "show_in_rest": 1,
    "rest_base": "",
    "rest_namespace": "wp\/v2",
    "rest_controller_class": "WP_REST_Terms_Controller",
    "show_tagcloud": 1,
    "show_in_quick_edit": 1,
    "show_admin_column": 0,
    "rewrite": {
    "permalink_rewrite": "taxonomy_key",
    "with_front": "1",
    "rewrite_hierarchical": "0"
    },
    "query_var": "post_type_key",
    "query_var_name": "",
    "default_term": {
    "default_term_enabled": "0"
    },
    "sort": 0,
    "meta_box": "default",
    "meta_box_cb": "",
    "meta_box_sanitize_cb": ""
    }
    ]

    Taxonomies could be added there, but it would be an enhancement rather than a bug.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.