• Resolved keiron77

    (@keiron77)


    I have the following code to list tags on a page, which is working:

    [mla_tag_cloud taxonomy=attachment_tag mla_link_href=’#{+slug+}’ mla_link_class=’image-filter’]

    I would like is to display a gallery below this with classes for each attachment_tag attributed to it. I have this code with several attempts to do this, but none work:

    [mla_gallery tax_query=”array(array(‘taxonomy’=>’attachment_tag’,’field’=>’slug’,’terms’=>’poster’))” mla_link_class='{+current_item_class+} {+slug+} {+taxonomy+} {+attachment_tag+} {+terms+} {+my_term+} {+query:tag+} {+tag+}’]

    Is there a way of doing it that I’m missing? The plan is to add some JS so the tag cloud acts as a filter for the gallery – unless this is possible another way which I haven’t discovered yet ˉ\_(ツ)_/ˉ

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for the source text of the shortcodes you are experimenting with. You wrote “The plan is to add some JS so the tag cloud acts as a filter for the gallery – unless this is possible another way …

    Using a tag cloud is a popular way to filter a gallery display. You can find one simple “Tag Cloud and Gallery” solution in the “MLA Gallery Examples” section of the Settings/Media Library Assistant Documentation tab. There are additional examples in the “MLA Tag Cloud Shortcode” and “MLA Term List Shortcode” sections of the Documentation.

    I hope that gets you started on a solution for your application. I am marking this topic resolved, but please update it if you need more specific guidance regarding the combination of clouds, lists and galleries for your application. Thanks for your interest in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a tag class to an image’ is closed to new replies.