[wp-hackers] Custom taxonomies for authors
scribu
scribu at gmail.com
Sat Mar 13 06:48:48 UTC 2010
On Sat, Mar 13, 2010 at 3:06 AM, Thomas Scholz <info at toscho.de> wrote:
> 'usermeta' isn’t made for n:n-relationships. I’d rather use something like
> this:
>
> register_taxonomy(
> 'color',
> 'user',
> array(
> 'hierarchical' => false,
> 'label' => 'Color',
> 'query_var' => 'color',
> 'rewrite' => array('slug' => 'color')
> )
> );
>
> But it doesn’t show any visible result (and I didn’t really expect it to
> do).
>
> What would be the best way to implement this functionality?
>
The second argument should be 'post' instead of 'user'.
What you really need is a 3 way relationship: post-color-user.
More information about the wp-hackers
mailing list