125 Responses

  1. galen
    galen Published |

    It’s features like this that take WordPress beyond being just another piece of blogging software. I think we’ll start seeing even more non-blog sites powered by WordPress in the next few years.

    Also, thanks for another great tutorial, Justin.

  2. Boone Gorges
    Boone Gorges Published |

    Thanks for this, Justin!

    I’ve never messed with this much, but I’ve always wondered if conflicts would arise with the fact that wp_term_relationships has a column for object_id, but no way of differentiating between different kinds of objects. That is, if you apply a term to a post with ID = 34, and another term to a user with ID = 34, does it cause problems? Presumably, for this reason, you couldn’t use the same taxonomy for users and for posts/CPTs?

  3. Chris Aprea
    Chris Aprea Published |

    I really hope they add more core support for user taxonomies in future WordPress releases. It’s really unfortunate that you have to hack together a lot of the functions that make user taxonomies actually useful. Nonetheless, very insightful tutorial Justin, as usual. Cheers!

  4. shawn
    shawn Published |

    I’ve been looking forward to this post from the first time I read the tweet.

    Thank you for such a detailed setup and explanation of what works and the current pitfalls. It’s really awesome to see tutorials and snippets like this that are way out of the wp ‘norm’.

  5. Discover Custom user taxonomies with Justin Tadlock | WereWP
  6. Ivete
    Ivete Published |

    This is incredibly timely for a project I’m working on right now, thank you for posting it!

  7. Tacklr
    Tacklr Published |

    Thanks for such detailed explanation, Justin. Superb as usual. I didn’t know that user objects are the same as posts and links. You already put an idea in my head (of implementing a project using these methods).

    In another note, when I enter the site with the www. subdomain it redirects to a Google 404 page. Maybe your host didn’t add the www subdomain automatically to your domain name.

    1. Tacklr
      Tacklr Published |

      Actually, there’s no redirection at all. It shows a blank Google 404 page with a link to Google homepage.

  8. Pablo Nakamura
    Pablo Nakamura Published |

    Excellent, as always.

    Presumably we could also create a hierarchical custom taxonomy for users, such as geographical values, e.g. Continent > Country > Region etc ?

    If so then this opens up some really interesting opportunities 😉

  9. mat
    mat Published |

    brilliant tutorial, Justin ! Thanks !

  10. Awesome Tutorial On User Taxonomies
    Awesome Tutorial On User Taxonomies at |
  11. WPTavern: Awesome Tutorial On User Taxonomies | WordPress Planet
  12. Listweb
    Listweb Published |

    I created one taxonomy in my post but when i update without check any they dont have a default taxonomy.

    How i can set a default taxonomy?

  13. Wordpress NewsWordpress News
    Wordpress NewsWordpress News at |
  14. Awesome Tutorial On User Taxonomies | Backlynx
  15. Iv.Draganov
    Iv.Draganov Published |

    Great tutorial! And just in time for a project I am working on. I implemented this for a “Location” taxonomy that is used for grouping users by country. However I noticed that when a user is deleted the term relations are not deleted and the term count remains the same. Is there an easy fix for that? Something to run on the ‘delete_user’ action maybe?

  16. Iv.Draganov
    Iv.Draganov Published |

    In order to delete user object to term relations upon user deletion use this function on the ‘delete_user’ action hook:

    add_action( 'delete_user', 'devpress_delete_user_object_term_relationships' );
    functiondevpress_delete_user_object_term_relationships( $user_id ) {
    	wp_delete_object_term_relationships( $user_id, 'location' );
    1. Zissou
      Zissou Published |

      This works like a charm, thank you for posting.

  17. Mike Schinkel
    Mike Schinkel Published |

    Hi Justin,

    Nice article, but I hope you’ll consider improving this theme so that source code is presented better than just simple large-size fixed-width font. I yearn for your prior theme…


  18. Monkeyboy
    Monkeyboy Published |

    Great article. The benefits of taxonomies are clear, and I want to start using them on my site. So I’m kind of dabbling at the moment, behind the scenes with them, on my website.

    Quick question though, that kind of puzzles me about the creation of taxonomies. Suppose I change my mind about a particular taxonomy, and no longer want it. Is it just a case of deleting the relevant call to register_taxonomy in functions.php? What would happen to any terms that have been added under that particular taxonomy? Do they stay in the database?

  19. cedric
    cedric Published |

    Hi and thanks for all your articles.

    On that one, I’m just wondering where to apply the filters and actions you created. Thanks !

    1. cedric
      cedric Published |

      Please ignore my previous question. I just didn’t know these filters were core and also working for taxonomies.

  20. Zack Katz
    Zack Katz Published |

    If you add the following to the admin_head, it will simulate being on the right page:

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
    		$('#menu-posts').removeClass('wp-menu-open wp-has-current-submenu').addClass('wp-not-current-submenu');
    		$('#menu-users').addClass('wp-has-current-submenu wp-menu-open menu-top menu-top-first').removeClass('wp-not-current-submenu');
    		$('#menu-posts a.wp-has-submenu').removeClass('wp-has-current-submenu wp-menu-open menu-top');

    Thank you for this great tutorial; it’s been very helpful!

    1. Zack Katz
      Zack Katz Published |

      Here’s the code, properly formatted:

      <script type="text/javascript">
      	jQuery(document).ready(function($) {
      		$('#menu-posts').removeClass('wp-menu-open wp-has-current-submenu').addClass('wp-not-current-submenu');
      		$('#menu-users').addClass('wp-has-current-submenu wp-menu-open menu-top menu-top-first').removeClass('wp-not-current-submenu');
      		$('#menu-posts a.wp-has-submenu').removeClass('wp-has-current-submenu wp-menu-open menu-top');
      1. Nathaniel Schweinberg
        Nathaniel Schweinberg Published |

        I’m going to update your code a bit, Zack!

        function cur_correct_current_menu(){ 
        	global $pagenow;
        	$tax = '';
            if ( !empty($_GET['taxonomy'] ) ) {
                $tax = $_GET['taxonomy'];
        	if (is_admin()) {
        		if ($pagenow=='edit-tags.php' && !empty( $tax ) ) { 
        			if( $tax == 'profession' ){ 
        	jQuery(document).ready(function($) {
        		$('#menu-posts').removeClass('wp-menu-open wp-has-current-submenu').addClass('wp-not-current-submenu');
        		$('#menu-users').addClass('wp-has-current-submenu wp-menu-open menu-top menu-top-first').removeClass('wp-not-current-submenu');
        		$('#menu-posts a.wp-has-submenu').removeClass('wp-has-current-submenu wp-menu-open menu-top');
        add_action('admin_head', 'cur_correct_current_menu');
      2. Nathaniel Schweinberg
        Nathaniel Schweinberg Published |

        Let’s try that again…

        function cur_correct_current_menu(){ 
        	global $pagenow;
        	$tax = '';
            if ( !empty($_GET['taxonomy'] ) ) {
                $tax = $_GET['taxonomy'];
        	if (is_admin()) {
        		if ($pagenow=='edit-tags.php' && !empty( $tax ) ) { 
        			if( $tax == 'staff_position' ){ 
        	jQuery(document).ready(function($) {
        		$('#menu-posts').removeClass('wp-menu-open wp-has-current-submenu').addClass('wp-not-current-submenu');
        		$('#menu-users').addClass('wp-has-current-submenu wp-menu-open menu-top menu-top-first').removeClass('wp-not-current-submenu');
        		$('#menu-posts a.wp-has-submenu').removeClass('wp-has-current-submenu wp-menu-open menu-top');
        add_action('admin_head', 'cur_correct_current_menu');
      3. Jon Masterson
        Jon Masterson Published |

        I added this because the styling on “Posts” was still a bit goofy for me…

        $('#menu-posts .wp-not-current-submenu').css({"font-size":"13px","font-weight":"bold","line-height":"18px","padding":"0"});
        $('#menu-posts a.wp-has-submenu').css({"font-size":"13px","font-weight":"bold","line-height":"18px","padding":"0"});


  21. Jon
    Jon Published |

    This is fantastic. I love WordPress but user types and permissions are definitely an area where it’s lacking. With this custom taxonomy stuff I think I can get my WP site doing everything I want. Thanks!

  22. James
    James Published |

    I’m in the initial stages of planning a project and may end up using some of this rather than going with additional user roles or user meta as I was first thinking.

    The following will set the right menu parent for your profession taxonomy.

    add_filter( 'parent_file', 'fix_user_tax_page' );
    function fix_user_tax_page( $parent_file = '' ) {
    	global $pagenow;
    	if ( ! empty( $_GET[ 'taxonomy' ] ) && $_GET[ 'taxonomy' ] == 'profession' && $pagenow == 'edit-tags.php' ) {
    		$parent_file = 'users.php';
    	return $parent_file;
    1. RonH
      RonH Published |

      How about with a custom top-level admin menu, should this work? I can’t get it to update. My parent file is ‘…/admin.php’ (actually, it’s ‘…/admin.php?page=my-sample-page’). Am I misunderstanding something here? Thank you!

      1. RonH
        RonH Published |

        Figured out my misunderstanding; had to also include the corresponding ‘add_submenu_page’ definition.

        `// Add Submenu of Top-level Menu to manage Activities








        // Set the menu parent for Activities my custom top-level

        add_filter( ‘parent_file’, ‘fix_tax_page’ );

        function fix_tax_page( $parent_file = ” ) {

        global $pagenow;

        if ( ! empty( $_GET[ 'taxonomy' ] ) && $_GET[ 'taxonomy' ] == 'activity' && $pagenow == 'edit-tags.php' ) {

        $parent_file = 'admin.php';


        return $parent_file;


  23. salocin
    salocin Published |

    Thx Justin for a good tut.
    I am trying to use this and allow Admin to set Multiple Taxonomy term for each user.
    In your example, only 1 profession can be set for each.

    In my example, I Need to allow multiple Profession to be set.
    I have already changed my_edit_user_profession_section() to use checkbox instead of radio.

    2 problems
    – How to save all checkbox selected.
    – How to make each selected checkbox checked

    Stuck on

    <input type="checkbox" name="profession" id="profession-slug ); ?>" value="slug ); ?>" ID, 'profession', $term ) ); ?> />


    * Sets the terms (we're just using a single term) for the user. */
      wp_set_object_terms( $user_id, array( $term ), 'profession', false);

    thx in advance

  24. salocin
    salocin Published |

    Found my own answer

    Change checkbox name to be profession[]

    then in saving options

    $term = $_POST['profession'] ;
    wp_set_object_terms( $user_id, $term, 'profession', false);
    1. Ethan
      Ethan Published |

      you might want to do something like:

      $term = array_map('esc_attr', $_POST['profession']);

      for sanitization.

  25. elvis
    elvis Published |

    Hi Justin,
    thanks for this, is a fantastic tutorial, exactly what I was looking for.
    One thing I’d love to have, is this taxonomy showing in the ‘All Users’ screen (and preferably to be able to filter by it), I have found code to add a column but can’t figure out what code to use to pull out the taxonomy term/s.
    I was trying with

    $terms = wp_get_object_terms( $id, 'profession')

    but not sure if i’m totally in the wrong ball park!
    Any ideas, or links to other places that could help?

  26. elvis
    elvis Published |

    I managed to get the terms appearing in the column with wp_get_object_terms (simple error in column name!) but any ideas or links for how to set up a pulldown filter (like ‘category’ in all posts table).


  27. steve
    steve Published |

    Hi there Ive created a custom taxonomy called ‘province’ when I try to add these provinces to the menu (under appearance) it shows in red and says invalid.

    Any ideas why this is occurring?

    The custom taxonomy appears in my custom post type and everything seems to be working except I cant add it to the menu cause when I do it comes up as invalid.

    1. Andrew
      Andrew Published |

      did you ever figure this issue out? I cannot find anything online that works.

      1. Lucas Gabriel
        Lucas Gabriel Published |

        Yeah I found the answer an another website. Taxonomies have a restriction that they cannot have uppercase characters in their name they can only have lowercase and underscore characters. that`s the problem.

    2. Lucas Gabriel
      Lucas Gabriel Published |

      Yeah I found the answer an another website. Taxonomies have a restriction that they cannot have uppercase characters in their name they can only have lowercase and underscore characters. that`s the problem.

  28. Damian Gostomski
    Damian Gostomski Published |

    Some great code snippets here, really helped me out a lot.

    On a project I’ve been working on, needed a fair few user taxonomies, so I abstracted out a lot of the backend logic into a plugin, so all you have to do, is register a taxonomy in the normal way, and the rest of taken care of for you.

    I’ll be expanding on the functionality in the coming weeks, but it will hopefully save some others the need for some of the code here


    1. David
      David Published |

      Great tutorial and plugin to simplify the workflow. Other users in the thread have been able to do this but I am having trouble with allowing users to enter more than a single term per taxonomy. I’ve changed the form on the user profile in the back-end to a checkbox but it will only save one at at time.

      Any help appreciated.

  29. Scott
    Scott Published |

    Great tutorial on creating user taxonomies … really well explained.

    One question I have and can’t seem to find the answer to is given a user has selected (in my particular case) a number of terms from the custom taxonomy, what code is needed to find all selected terms for that user?

    In the tutorial you show the users for a particular term but not the other way around.

    Any help would be greatly appreciated.


  30. BC
    BC Published |

    Awesome! Works great.

    I’m wondering how I could incorporate this into the front end?
    I have some basic edit profile fields set up which are working but how would I be able to add taxonomies to a front end edit page?

  31. Catherine
    Catherine Published |


    Sure, I Gonna Share this !!!


  32. Anca
    Anca Published |

    Thanks, this is a great tutorial. I really appreciate this solid example using functionality that’s available but not obvious.

    I’m using this idea to create some access rules for users based on a category on posts (so the taxonomy terms are related to posts and users).

  33. Nick Budden
    Nick Budden Published |

    Thanks for the great article! I think you forgot to include this line in the first block of code:

    add_action( ‘init’, ‘my_register_user_taxonomy’, 0 );

    1. Mehdiway
      Mehdiway Published |

      I almost went crazy, it didn’t wanna work ! Thank you so much !

  34. » Get a User’s Custom Taxonomies
    » Get a User’s Custom Taxonomies at |
  35. MikePayne
    MikePayne Published |

    Thanks Justin! Digging through your archives always lends a few treasures.

  36. Pablo
    Pablo Published |

    Great article! Due to a lack of experience, I’m not too comfortable manipulating code. So, I was wondering if there’s a plugin that’ll create custom user taxonomies? And, assuming there is, whether you’d advise to avoid a plugin for this type of task and stick to following this tutorial?

  37. WordPress: Necessary Reading | Tom J Nowell
  38. Alvin
    Alvin Published |

    Is there a way to add tags to an user ? This way we can define skills and create a tag cloud of this ! Any suggestions ?

  39. Alvin
    Alvin Published |

    Hi Justin, thx for your reply

    I need my users to add their own tags/taxonomies , not predefined by me.
    Like when adding tags to a post , users can add multiple tags

    Sorry sort of a newbie on this , planning on creating a plugin ?

  40. Rach
    Rach Published |


    Thank you very much for this posting this. I found it very useful and I’m using it in a project I’m currently working on.

    I have a question:

    Since users and posts are stored in two different table, it is possible that we have a post with ID= 250 and a user with ID=250
    We are using the same function to set the terms wp_set_object_terms for both users and posts. Would it be a conflict between the two different objects? Would they override each others values?

    Thank you,

    1. Mark Maskell
      Mark Maskell Published |

      I have also encountered this problem, and yes, it does conflict. If I have the same taxonomy registered for both users and posts, terms applied to user 7 will also apply to post 7 and vice versa.

      My usage scenario was making user groups that could only access specific posts of a particular custom post type that were tagged with the same taxonomy term. So if I tagged “group 1” for the particular custom post, every user with “group 1” tax term would have special capabilities for that post because of the way I used map_meta_caps (Thanks for that guide too, Justin!).

      I resolved the conflict by un-sharing the taxonomy and instead storing the “groups that have special capabilities” information as a custom field in the post, rather than a tax tag.

  41. Mark Maskell
    Mark Maskell Published |

    I found a problem in the code that sometimes causes the wrong radio button (or in my case, extra checkboxes) to show up as “checked”. Where you have:

    ID, 'profession', $term)); ?> it would be better to pass it $term->term_id instead of the full $term array.

    When the $term array is passed to is_object_in_term(), it apparently checks the database fields for both “term_id” AND “term_taxonomy_id” (which are not necessarily the same thing) for matching values. The result is that, when you check an item with term_id = 7 for example, the item with term_taxonomy_id = 7 will also show up as checked. Specifying that you want to check a specific $term->term_id instead of the full $term array solves the problem. This problem was also noticed in the plugin that was created which followed this guide.

    In context, the revised code should be:

    <input type="radio" name="profession" id="profession-slug ); ?>" value="slug ); ?>" ID, 'profession', $term->term_id ) ); ?> /> <label for="profession-slug ); ?>">name; ?>

    This guide was very helpful to me, thanks for putting it together. Hopefully this small correction will help others.

  42. Tiina
    Tiina Published |

    I’m trying to do quite similar thing to my page, but I can’t get this function to work function my_update_profession_count( $terms, $taxonomy ).

  43. Piet
    Piet Published |

    Hi Justin, you wrote a great post, but it doesn’t seem to work properly (anymore?).

    I followed your instructions to the letter and I made 4 professions. Now when it comes to saving the user_meta for a user, what happens is that if I select a random profession after saving a different one has been selected.

    I also tried with the checkbox as described by @salocin (#comment-594317) and then upon saving the result is that two boxes are selected.

    This only happens (both radio and checkbox) when the selected option is everything but the last one.

    Do you have any suggestions on how to make it work (again)?


    1. Piet
      Piet Published |

      OK, my bad for not thoroughly reading the comment above. I got it working now 🙂

      1. Pau
        Pau Published |


        Where is the solution to select more than one term? my english is not so good, and i can’t find it, or maybe i don’t understand it. I’ve read all comments above, and i didn’t see it.

        Please can you help?

        Tanks!! 😉

      2. Pau
        Pau Published |

        I’ve found it!!

        salocin has the answer

  44. Piet
    Piet Published |

    I do have another question though.

    I am using this function to associate a blog custom taxonomy with a user. This blog custom taxonomy also belongs to the post post_type.

    On the user profile I also have a few other user_meta fields that I output on the author archive.

    Is there a way to also output the association with the blog taxonomy on the author archive, ideally with a link to the taxonomy archive.

    Thanks in advance to anyone that can point me in the right direction!

    1. Piet
      Piet Published |

      I found the answer by using the wp_get_object_terms()-function a bit different. For anyone looking to do the same or something remotely similar, this is my solution:

      $blog_terms = wp_get_object_terms( $post->ID, 'blog' );
      if ( ! empty( $blog_terms ) ) {
        if ( ! is_wp_error( $blog_terms ) ) {
          foreach( $blog_terms as $term ) {
            echo '<p>' . __( 'Associated Blog: ', 'text-domain' ) . '<a href="' . get_term_link( $term->slug, 'blog' ) . '">' . $term->name . '</a></p>'; 
  45. Kevin
    Kevin Published |

    Thanks for this tutorial. It has been very helpful. I have created a taxonomy archive page, but cannot seem to get pagination to work.

    get_objects_in_term just does not support it and anything I try to do with WP_User_Query fails as I cannot figure out how to select the custom taxonomy. Am I missing something obvious?

    1. Martes
      Martes Published |

      Having the same Problem. How can I use WP_User_Query to only get the users with a specific term?

  46. Mrfoxtalbot
    Mrfoxtalbot Published |

    Thanks a lot for sharing this. I actually ended up using Damian´s plugin in the ened but since he credits you in the plugin description I am thanking you too. It really saved my day. Cheers!

  47. Maz
    Maz Published |

    Great plugin!

    i trying to get the current users taxomony and displaying it but no success. How can i do this?

  48. Otto Rask
    Otto Rask Published |

    One question: how does WordPress differentiate users from posts when using wp_set_object_terms()? Can it see the call context (edit_user_profile_update hook in this case for example)?

    If a post has an ID 5 and a user also has a user ID of 5, what happens?

    1. Otto Rask
      Otto Rask Published |

      Okay, reread the comments and spotted a few comments regarding this issue. So I would most probably need to create two different taxonomies that act as proxies for each other.

      I wish the WordPress core would start handling users as a post type (of sorts) and prevent ID clashes. The idea of objects in WordPress doesn’t work in that respect right now. 🙁

  49. Jane Reed
    Jane Reed Published |

    Great tutorial. Thank you. I’m trying to get my custom user taxonomies to appear in the post columns on my user dashboard. I’ve tried “show_admin_column” => true when I register the taxonomy with no success, and I’ve searched the internet high and low looking for a solution. Maybe it’s impossible, but any nudge in the right direction would be appreciated.

  50. Dasha
    Dasha Published |

    Hello Justin,

    Great tutorial, really helped me with some development!

    I’m a bit stuck though. I’ve got a hierarchical taxonomy, like categories, where you can have several level of nesting within them. The admin taxonomy page is displayed ok – where sub-categories/terms appear correctly under its parent category/term.

    However, I don’t know how to display the taxonomy terms on the User page in the same way as Categories are displayed on Posts — where you can see the level structure within them and when you assign a child term for a post the parent will be assigned to the post too.

    As far as I could track it down, the native WP uses ”meta_box_cb” argument when registering a post and for hierarchical taxonomies it’s assigned to ‘post_categories_meta_box’ function.

    I’m not sure how can I hook this functionality to my User hierarchical taxonomy?

    I’d would hugely appreciate any tips and advice.

    Many thanks,


  51. Dasha
    Dasha Published |


    Another question. Has anyone tried to make Custom User Taxonomies to be ordered in a custom way? I was trying to make it work with Category Order and Taxonomy Terms Order plugin.

    However, I’m stuck.. here is the post: http://wordpress.org/support/topic/support-for-user-taxonomies

    I would hugely appreciate any tips and help.



  52. Dasha
    Dasha Published |

    Hello everyone,

    I’ve got yet another question 🙂

    I need to delete some user metadata when a term is deleted. I’ve tried to hook into “delete_$taxonomy” action, but it doesn’t seem to run when a term is deleted.

    I’m a bit lost. Does anyone know what correct action can I hook into to do custom code.

    I would hugely appreciate any help.

    Many thanks,


    1. Dasha
      Dasha Published |

      Actually, I was on the right track. I ended up using the following code:

      [code]add_action( “delete_{$taxonomy}”, array( $this, ‘delete_custom_metadata’ ), 10, 3 );[/code]

      Why I thought it wasn’t working, is due to the fact that I was trying to echo debugging info on the screen and it wasn’t showing up, so I thought it didn’t work.

      According to a WP Stackexcange post, someone mentioned: “Note that you also can’t output anything to the browser, that will cause it to fail.” (Source link: http://wordpress.stackexchange.com/questions/50898/how-to-use-create-term-edit-term-delete-term-actions )

      I hope it might help someone.


  53. What Do WordPress Professionals Want to See In 2014?
  54. Discover Custom user taxonomies with Justin Tadlock | Chicago Activism
  55. Loren
    Loren Published |

    I really appreciate this tutorial and all the comments. I have used this custom user taxonomy method to create an online directory. The custom taxonomy attached to the user allows me to populate different sections of the directory with user information. I have made the taxonomy hierarchical and can multi-select sections for an individual user.

    Everything seems to be working well except for getting terms by user. Functions such as get_the_term_list() or get_terms() do not seem to work when I use the userID in place of the postID. So, for example, using “get_terms( ‘directory_section’, array(‘include’ => array($user->ID)) );” does not seem to work.

    Any suggestions as to how I would go about obtaining the terms by user?

    1. Loren
      Loren Published |

      For any one else that might have struggled with this, I figured it out. The function that returns the terms for users with custom taxonomies is wp_get_object_terms($ID, $taxonomy).

      1. Leo
        Leo Published |

        Great tutorial Justin!!!

        Hi Loren, I was trying to find exactly the help that you posted in your last comment for some personal project. Your last comment helped me so much… good vibes!!!

  56. Get current custom user taxonomy - WordPress BuddyPress Tweaks
  57. Add default WordPress tag meta box to User Profile - WordPress BuddyPress Tweaks
  58. User Tags in Wordpress | CodeChutney
    User Tags in Wordpress | CodeChutney at |
  59. Useful stuff for the Author.php page | WP Munchies
  60. Get current custom user taxonomy - HelpDesk
  61. Wordpress User Tags : CodeChutney
    Wordpress User Tags : CodeChutney at |
  62. Add default WordPress tag meta box to User Profile - HelpDesk
  63. WordPress Resources | My Odyssey
    WordPress Resources | My Odyssey at |
  64. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] | Sharing Interesting Stuff, Updates News & Free Tips
  65. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] | News 24 Online.Com
  66. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] | Certalinx
  67. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] | Web Design Articles From An Actual Living Web Professional
  68. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] | c7c World
  69. How to Register Custom Taxonomy For WordPress Users [WordPress Tip] - KreativePinoy
  70. How To Register Custom Taxonomy For WordPress Users | Swag Web Design
  71. How To Register Custom Taxonomy For WordPress Users
  72. Регистрируем произвольную таксономию для пользователя WordPress - WPinCode.com
  73. Query User and get terms from a custom Taxonomy | Yambao Answers
  74. Custom taxonomy link opens under Posts | DL-UAT
  75. Peter Shaw
    Peter Shaw Published |


    Just writing to let you know that I have posted an updated version of this plugin code to the repository here:


    The new plugin fixes a few bugs with the previous plugin (based on Justin’s code) and also adds a few enhancements.

  76. Martes
    Martes Published |

    I ran into a small problem:

    I wanted to associate the tags i am using for a custom post type for users as well. at first sight it worked fine, but then I noticed, that if the there are user_ids which are the same as some post_ids which is possible since they are two seperate tables which auto_incrementing id-fields, you don’t know whether the tags belong to the CPT or the User!

    I am now thinking about creating a custom post type for the users, but don’t know how to handle it yet…

    does anyone have ideas?

  77. Sascha
    Sascha Published |

    Hi there,

    This post opened a lot of doors. Thank you!

    My question: what’s the best way to check if a taxonomy is associated to a post or a user? Is there a built in way to check for the associated object that you use in register_taxonomy?



    1. Sergei
      Sergei Published |

      I trying to to set terms after user created grammatically, what the wrong with that? its not work, the user created, but terms not updated.

      $new_user_id = wp_insert_user(array(
                          'user_login'      => $user_login,
                          'user_pass'           => $user_pass,
                          'user_email'      => $user_email,
                          'first_name'      => $user_first,
                          'last_name'           => $user_last,
                          'user_registered' => date('Y-m-d H:i:s'),
                          'role'                => 'professional',
                      wp_set_object_terms( $new_user_id, $user_professions, 'user_profession', false);
                      clean_object_term_cache($new_user_id, 'user_profession');
                      // send an email to the admin alerting them of the registration
  78. Custom User Taxonomies - Laura Melo
    Custom User Taxonomies - Laura Melo at |
  79. Custom user taxonomies in WordPress – WordPress Tips

Comments are closed.