• I’m hoping that I’m just doing this wrong, but I don’t think so. I have two problems with the shortcode “nggtags gallery=”

    First problem, I have some tags with spaces in them like so:
    Tags = Something, Something Else, Something Again

    If I create a [nggtags gallery=Something, Something Else] call, I get nothing.
    If I try to use quotes around “Something, Something Else” I get the entire album.
    If I try to use quotes around each tag “Something”, “Something Else” I get nothing.

    Am I doing something wrong here with using quotes? Is there a special way to make this work?

    The second problem is one of AND versus OR. When using [nggtags gallery=tag1, tag2, tag3] I expect to get images that are tag1 AND tag2 AND tag3. Instead, I get images that are tag1 OR tag2 OR tag3. Is there a way to override this behavior outside of making custom tags for everything?

    Example:
    Photo1 = tag1, tag2
    Photo2 = tag1, tag3
    Photo3 = tag1

    What I want to get is the Photo2 image(s), so I use [nggtags gallery=tag1, tag3] expecting to get only images with tag1 AND tag3. Instead, I get everything with tag3 OR tag1. This seems like a mistake, or am I using it wrong.

    Help would be appreciated.

Viewing 1 replies (of 1 total)
  • I was checking the php files to see if I could do what you want to do with tag1 AND tag2, and it seems that there’s no way around it but to rewrite the function(s) that retrieve the images with the tags on the list.

    I think it’s related to find_images_for_tags (in tags.php) and find_images_in_list (in ngg-db.php).

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] nggtags gallery does not work correctly with multiple tags, or tags with s’ is closed to new replies.