Displaying/hiding custom fields based on taxonomy value

Support MB Conditional Logic Displaying/hiding custom fields based on taxonomy value

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40732
    jason6666h@gmail.com[email protected]
    Participant

    Hi,

    I am having trouble displaying Metabox custom fields based on taxonomy value in my WordPress website. I followed the tutorial instructions but the fields still do not show up correctly.
    Screenshot of conditional settings: https://imgur.com/a/GYmWW8w
    Screenshot of taxonomy setting: https://imgur.com/a/hhHw8f9

    Could anyone please help me identify what I might be doing wrong? I want the custom fields to display or hide based on the selected taxonomy value.

    Thank you in advance for your assistance.

    #40735
    PeterPeter
    Moderator

    Hello,

    Can you please share a screenshot when you edit the taxonomy > General tab? Is the "Object_type1" taxonomy slug?

    #40739
    jason6666h@gmail.com[email protected]
    Participant

    Is this it?

    https://imgur.com/a/rl6HhZB

    #40744
    PeterPeter
    Moderator

    Hello,

    Yes, it is. According to the WordPress documentation, the taxonomy slug
    must not exceed 32 characters and may only contain lowercase alphanumeric characters, dashes, and underscores
    https://developer.wordpress.org/reference/functions/register_taxonomy/

    Can you please change it to a sample slug like my_taxonomy_slug and check this issue again? You can also deactivate all plugins except Meta Box, MB extensions and switch to a standard theme of WordPress and see if it helps.

    #40747
    jason6666h@gmail.com[email protected]
    Participant

    Hi,

    I have just changed the slug to object_type1 and disabled all other plugins, keeping only Meatbox as the default theme. However, the condition for showing or hiding still cannot be recognized.

    #40749
    PeterPeter
    Moderator

    Hello,

    Please export the field group to the JSON file and share it with me or share the PHP code generated, I will check the issue on my local site.
    Read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.