WordPress.org

Ready to get started?Download WordPress

Forums

User Taxonomies
Support taxonomies for multiple post types (2 posts)

  1. jordan314
    Member
    Posted 9 months ago #

    Hi,
    WordPress supports taxonomies for multiple post types, see http://wordpress.org/support/topic/one-taxonomy-for-multiple-post-types.
    I modified:
    if($object != 'user') return;
    to:

    if(is_array($object))
    		{
    			if(!in_array('user', $object)) return;
    		}
    		else
    		{
    			if($object != 'user') return;
    		}

    And now I can use the same taxonomy for users that I use for other post types.

    http://wordpress.org/plugins/user-taxonomies/

  2. boxcarpress
    Member
    Posted 4 months ago #

    I don't think it's a good idea to share taxonomies between posts and users. See: http://wordpress.org/support/topic/dont-share-taxonomies-between-users-and-posts?replies=1#post-4921419

Reply

You must log in to post.

About this Plugin

About this Topic