User Taxonomies
Fails when taxonomies are registered for array of post types (3 posts)

  1. boxcarpress
    Posted 2 years ago #

    The plugin as written only works on taxonomies registered to one post type. It expects the second parameter $object_type of register_taxonomies() to be a string, but it can also take an array (as shown in the Codex).

    For example, this fails to allow the taxonomy for the user:

    See http://pastie.org/6464242 for a rewritten DJG_UserTaxonomies::registered_taxonomy method to allow the plugin to handle taxonomies for multiple post types.


  2. boxcarpress
    Posted 2 years ago #

    While we're at it, here's a fix to better handle the POST ajax call when you add a user taxonomy (so the code expects a $_REQUEST rather than a $_GET variable):

  3. boxcarpress
    Posted 1 year ago #

    On second look, I don't think that it's a good idea to have a taxonomy apply to both posts and users (as I explain how to do in the first post). See: http://wordpress.org/support/topic/dont-share-taxonomies-between-users-and-posts?replies=1#post-4921419

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic