0

Is it possible to have users populate a taxonomy meta box(es), using the post_tag or any custom taxonomies I create?

The idea is to include users in a network into the taxonomy schema, which would bring the community together in a better way.

I guess a more specific way to ask this is how would I add taxonomy meta boxes to the user interface. Obviously anything's possible if I'm willing to go far enough.

Is this something that can be done using existing WP API's etc?

Thanks.

2

2 Answers 2

1

Best way to link taxonomies and users is to link the user account to a custom post type then link the taxonomy to the custom post type.

Example:

User - Post - Taxonomy

You can use the action user_register to automatically create a new post for every new user and then start linking everything.

I have used this method on https://myyogaavenue.com and it works like a charm.

3
  • ljaas, how did you link the user account to the custom post type to the taxonomy?
    – user9178
    Oct 4, 2011 at 20:30
  • I will provide code for this by the end of this weekend.
    – Ijaas
    Oct 5, 2011 at 17:43
  • I think, it's more easy to add an input text with "tag1, tag2, tag3…" in user_meta then play with php.net/manual/en/function.explode.php
    – benoît
    Dec 14, 2015 at 20:51
2

Giving taxonomies to users can be done! Look at this article that i found on the internet… It explain easily how to do it!:-)

http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress#comment-1911972

2
  • This article is pretty old now so hopefully someone will make an up to date tutorial. Ideally the answer here on WPSE would have all the details and not rely on outside links, but in this case the link works.
    – jerclarke
    Feb 19, 2016 at 19:02
  • WPSE question with updated versions of solutions from justin's post wordpress.stackexchange.com/questions/218523/…
    – jerclarke
    Feb 23, 2016 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.