Title: Taxonomy slug in shortcode?
Last modified: August 24, 2016

---

# Taxonomy slug in shortcode?

 *  Resolved [Cogdiss](https://wordpress.org/support/users/cogdiss/)
 * (@cogdiss)
 * [11 years ago](https://wordpress.org/support/topic/taxonomy-slug-in-shortcode/)
 * Hi,
 * I have a question about the MCM Shortcode and how it works with custom taxonomies.
   I may have misunderstood exactly what the plugin is intended to do, so sorry 
   if I’m asking for something beyond its capabilities!
 * I am using Types & Views by Toolset, and the WordPress CSV Import plugin. I have
   created a custom post type (“books”) which I am using the CSV import plugin to
   import into. I have custom taxonomies (Author, Title, Genre) which apply to Books,
   and I’ve also set them to apply to Media attachments.
 * In my “books” content template, I am using the following shortcode:
    [WP_MCM 
   taxonomy=”title”]
 * It was my understanding that this would pull in any media attachments with the
   same value for the “title” taxonomy as the post it was being pulled into – is
   that correct? Currently, that isn’t working, and the images are only being pulled
   in if I attach them to the correct book post in the media library. On this page,
   for example: [http://27bestbooks.com/book/huckleberry-finn-by-mark-twain-10/](http://27bestbooks.com/book/huckleberry-finn-by-mark-twain-10/)
   I have attached the images to the post, but on this one: [http://27bestbooks.com/book/a-study-in-scarlett-by-arthur-conan-doyle-10/](http://27bestbooks.com/book/a-study-in-scarlett-by-arthur-conan-doyle-10/)
   I have given them the same “title” taxonomy, but not attached them to the post.
 * In my MCM settings I have selected “Titles” as the media taxonomy to use, and
   left everything else blank.
 * Any help would be appreciated, but like I said, if I’ve misunderstood how the
   plugin is intended to work then please accept my apologies!
 * Thanks
 * Hannah
 * [https://wordpress.org/plugins/wp-media-category-management/](https://wordpress.org/plugins/wp-media-category-management/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [DeBAAT](https://wordpress.org/support/users/debaat/)
 * (@debaat)
 * [11 years ago](https://wordpress.org/support/topic/taxonomy-slug-in-shortcode/#post-6133596)
 * Hai Hannah,
 * Interesting use case you have here.
    The shortcode you used should show all images
   for the “title” taxonomy, using the default category defined in the settings.
   At the moment, I can’t figure out how this should be related to the post you 
   are showing.
 * If I understood your wish correct, I would suggest you use the following shortcode
   attributes:
 * **[WP_MCM taxonomy=”title” category=”<title_cat>”]**
 * Where the value of “<title_cat>” might be “huckleberry-finn-by-mark-twain-10”,
   or whatever you defined for this book.
    With this, you could also use the taxonomy“
   author” to show another set of images, each related to the “<author_cat>” value.
 * Hope this helps. Please don’t hesitate to ask if this doesn’t work out.
 *  Plugin Author [DeBAAT](https://wordpress.org/support/users/debaat/)
 * (@debaat)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-slug-in-shortcode/#post-6133725)
 * Hai Hannah,
    As I didn’t hear anything, I assume it is working now. So I’ll close
   this issue. Thanks again. Jan

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Taxonomy slug in shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/wp-media-category-management/assets/icon-256x256.png?rev
   =2908889)
 * [WP Media Category Management](https://wordpress.org/plugins/wp-media-category-management/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-media-category-management/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-media-category-management/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-media-category-management/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-media-category-management/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-media-category-management/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DeBAAT](https://wordpress.org/support/users/debaat/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-slug-in-shortcode/#post-6133725)
 * Status: resolved