Taxonomy Advanced not storing value

Support MB Custom Table Taxonomy Advanced not storing valueResolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #38308
    EddieEddie
    Participant

    1. So I created a Taxonomy and added it to a Group field in a custom field, with the Taxonomy Advanced option.
    2. Added the post type to a page.

    The challenge is that when I select a taxonomy option, it doesn't store the value and so the taxonomy options all show 0.

    How do I fix this?

    Thank you.

    #38311
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Sorry, I do not understand the issue clearly. Can you please share some screenshots of the issue? And the code that creates the custom fields on your site.

    #38349
    EddieEddie
    Participant

    1. See screenshot for selected taxonomies https://share.cleanshot.com/wk0lZn

    2. As you can see in this second screenshot, the categories count is empty yet selected in the screenshot above https://share.cleanshot.com/vPUWlt

    Thank you

    #38351
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks, I understand the issue. The field type taxonomy does not work like a normal custom field, it does not save the value in the table wp_postmeta, it sets post terms. So if you want to use this field, please do not add it under a group as a subfield or save the field value to the custom table.

    Or use the field type taxonomy_advanced to set the post meta. Please read more on the documentation
    https://docs.metabox.io/fields/taxonomy/
    https://docs.metabox.io/fields/taxonomy-advanced/

    #38362
    EddieEddie
    Participant

    I used the taxonomy_advanced option, as I mentioned in my initial post. Screenshot-- https://share.cleanshot.com/z78qX8

    #38363
    EddieEddie
    Participant

    I've also cleared cache at both site and server levels.

    #38365
    Long NguyenLong Nguyen
    Moderator

    Hi,

    As I mentioned above, if you want to set post terms, please use the field type taxonomy. The field type taxonomy_advanced save the post meta like other custom fields, it does not set post terms.

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