Adding a tag class to an image
-
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 ˉ\_(ツ)_/ˉ
- The topic ‘Adding a tag class to an image’ is closed to new replies.