• Resolved Cogdiss

    (@cogdiss)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DeBAAT

    (@debaat)

    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

    (@debaat)

    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.