• Hello there,

    I would be grateful if you could help me doing this:
    I want my WordPress users to be able to assign tags to their profile page(tag cloud), by adding keywords in the “edit profile” page.
    And I want WordPress to automatically assign tags from posts the users created- to their profiles.

    Something with taxonomies/the_terms/user_meta_data(?)

    Also if you know about any plugin that may help me- please share ??

    Thanks and have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not well versed in available plugins, but I know a custom coded solution is possible, though it may not be exactly as you envisioned.

    Taxonomies can only be formally associated with post type objects, but there’s no reason you couldn’t maintain an array of tag names in user meta. It could make queries rather difficult since there is not a formal relationship, but the data exists in the DB, so there is some way to extract it.

    There’s various actions which you can use to add extra fields to the profile page, then use the ‘update_user’ action to grab the field value out of $_POST, validate, sanitize, and store in usermeta.

    In a similar manner, hook something like ‘update_post’, get the post’s tags, and add them to the author’s tag usermeta if they are not there already.

    Thread Starter kokojambo

    (@kokojambo)

    Thank you so much @bcworkz
    Appreciate this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Assign tags to users’ is closed to new replies.