Saving taxonomies to user

Support MB User Profile Saving taxonomies to user

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36409
    YasmineYasmine
    Participant

    Hello,

    I have noticed that it is possible to use a custom taxonomy for a user. I need to save the location to a post, but using the custom fields I can then attach that taxonomy to a user. I have previously understood that this is not a normal function of WP. And so I just want to double check that if I create a bunch of taxonomies to only use for user (eg - nationality, gender), then I do not cause later issues!

    #36424
    Long NguyenLong Nguyen
    Moderator

    Hi,

    WordPress does not allow registering the taxonomy for the user like the post so the field taxonomy does not work with users. But you can try to use the field taxonomy_advanced, it works like a user meta. Please get more details here https://docs.metabox.io/fields/taxonomy-advanced/

    #36427
    YasmineYasmine
    Participant

    Oh thats great!

    And quick follow up question - when creating the taxonomy, does it matter the location where its saved? I assume not, but just wanting to check. I was choosing to attach it to my regular WP posts.

    Thanks Long!

    #36443
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The field taxonomy_advanced saved the meta value in the meta table like post meta, term meta, user meta. So if you use this field, no matter the location of the taxonomy, it still works as well.

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