[Plugin: Media Categories] example of use with custom taxonomy
-
this is what I have..
custom taxonomy name (plural): My Gallery Categories
(singular): My Gallery Category
Custom Taxonomy Slug: “my-gallery-category”
I’m using a custom post type for the taxonomy.
I have mc taxonomy in functions.php:
add_filter('mc_taxonomy', 'mc_filter_taxonomy'); function mc_filter_taxonomy($taxonomy){ if($taxonomy == 'category'){ $taxonomy = 'my-gallery-category'; } return $taxonomy; }
and the meta box appears in the attachment editor. The category I created under “my gallery cateories” appears, The taxonomy assignment to the image saves. But I can’t get the shortcode to output.
`[gallery my-gallery-category="botanical"]‘
with “botanical” being the term name.
Is there an example of how the code should look in mc taxonomy and in the shortcode when using a custom taxonomy? or am I doing it right?
I know I’m close..please help!
- The topic ‘[Plugin: Media Categories] example of use with custom taxonomy’ is closed to new replies.