Custom taxonomies in a group field, save the data to the db, but don't display

Support MB Custom Post Type Custom taxonomies in a group field, save the data to the db, but don't displayResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43320
    Jim HJim H
    Participant

    I have created 2 custom taxonomies and have them being used in a cloneable group in my custom post type. I can set the values, save the CPT, and when I later view it again, other values in the group display, but not the taxonomy values. I checked in the database, and the values are saving, they are just not populating the fields when the CPT is edited. Here is the saved value in the database:

    a:1:{i:0;a:6:{s:25:"exh_show_participating_in";s:4:"7766";s:10:"space_type";s:3:"114";s:8:"booth_id";s:3:"301";s:5:"items";a:3:{i:0;s:3:"108";i:1;s:3:"110";i:2;s:3:"111";}s:14:"deposit_amount";s:3:"100";s:6:"_state";s:8:"expanded";}}

    space_type and items are the 2 custom taxonomies, and as you can see, they have values set.

    here is a link to an image of what is displayed when you bring up the CPT to edit

    https://staging.engagedindiana.com/wp-content/uploads/2023/09/Screenshot-from-2023-09-21-22-47-25.png

    I have deactivated all plugins except MB and my plugin that creates the main CPT that this is attached to, it made no difference.

    Thanks,
    Jim

    #43332
    PeterPeter
    Moderator

    Hello Jim,

    Which is the field type taxonomy or taxonomy_advanced? If it's taxonomy, it does not work in the group. You should use the field type taxonomy_advanced.
    https://docs.metabox.io/fields/taxonomy-advanced/

    #43339
    Jim HJim H
    Participant

    That worked perfect! Thanks for the prompt reply and the answer first time!

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