Ho-kay, you're going to have to bear with me...
I would like to create a WP_Query that returns items from a specific custom post type (testimonials) that are also tagged with a certain tag (this far is fine)... problem is they are not global tags but a custom taxonomy to restrict these tags to just this custom post type (taxonomy-tags)...
so, I expected this to work:
the custom taxonomy is created here:
^^ god knows how, but this seems to know I wanted it to work like a normal tags field in the admin, and just... works...
so, can you see what I'd like to do? any ideas?
I would like to create a WP_Query that returns items from a specific custom post type (testimonials) that are also tagged with a certain tag (this far is fine)... problem is they are not global tags but a custom taxonomy to restrict these tags to just this custom post type (taxonomy-tags)...
so, I expected this to work:
PHP:
WP_Query('post_type=testimonial&testimonial-tags=print');
the custom taxonomy is created here:
PHP:
register_taxonomy( 'testimonial-tags', 'testimonial',
array(
'hierarchical' => false,
'label' => __('Testimonial Tags'),
'query_var' => 'testimonial-tags',
'rewrite' => array('slug' => 'testimonial-tags' )
)
);
^^ god knows how, but this seems to know I wanted it to work like a normal tags field in the admin, and just... works...
so, can you see what I'd like to do? any ideas?