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: https://27bestbooks.com/book/huckleberry-finn-by-mark-twain-10/ I have attached the images to the post, but on this one: https://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://www.ads-software.com/plugins/wp-media-category-management/
- The topic ‘Taxonomy slug in shortcode?’ is closed to new replies.