Support » Plugin: MaxGalleria » Displaying Tags as Gallery

  • WordPress Version: 4.3
    PHP Version: 5.4.41
    Home URL: http://blackforestltd.com

    I am looking to display galleries of images on a page based on their respective tags.

    I see that MaxGalleria has a section for “tags” and also “categories”.

    My question is how do I go about displaying a gallery that will pull all the pictures with a particular tag?

    Is this possible?
    if you could point me in the right direction, that would be great.
    Thank you for your help

    https://wordpress.org/plugins/maxgalleria/

Viewing 1 replies (of 1 total)
  • Plugin Author AlanP57

    (@alanp57)

    With Maxgalleria you are able to specify tags for galleries but not for images in a gallery.

    Now if you want to show galleries based on tags of a blog posts, you would need to write a new short code that would do these steps:

    1. get a list of tags for the current blog posts. use the slug-tag

    2. get a list of IDs of galleries

    3. For each gallery get the gallery’s tags. Display the gallery if any of its tags match the tags of the post tag (compare the slug-tags).

    Alan

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying Tags as Gallery’ is closed to new replies.