• I’ve found an issue with the nggtags shortcode and tags that have spaces.

    If I do something like [nggtags gallery=Mallard] or [nggtags gallery=Mallard,Merlin], everything works as expected.

    If I try [nggtags gallery=Trumpeter Swan], then what I get a bunch of images that are not tagged with “Trumpeter Swan”. It appears it’s just returning all the images from the lowest id going up until it maxes out however many it will display.

    If I try [nggtags gallery=Mallard,Trumpeter Swan,Merlin] the Mallard images will be displayed, but nothing else will be.

    If I try [nggtags gallery=Mallard,Merlin,Trumpeter Swan], then Mallard and Merlin images will be displayed, but the Trumpeter Swan images will not be.

    I’ve tried enclosing “Trumpeter Swan” in ” or ‘ but that doesn’t seem to matter.

    Thanks

    http://wordpress.org/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Did you try this?

    [nggtags gallery="Mallard,Trumpeter Swan,Merlin"]

    Thread Starter gwark

    (@gwark)

    In that case, the photos for Mallard and Merlin come up, but not for Trumpeter Swan.

    Looks like NGG2.0 converts spaces in tags into ‘-‘, so try this:

    [nggtags gallery="Mallard,Trumpeter-Swan,Merlin"]

    I’d call it a bug, seems to be using the “slug” for the tag rather than the tag.

    Thread Starter gwark

    (@gwark)

    [nggtags gallery="Mallard,Trumpeter-Swan,Merlin"]

    results in only the Trumpeter Swan photos showing up. if I do

    [nggtags gallery="Trumpeter-Swan"]

    it doesn’t work (the big mess of images shows up again).

    Thanks for the help!

    Looks to be something they’ve partially fixed in the latest beta, I’m running 2.0.2 in a test environment and replacing spaces with minus works for me. However, it fails on tags with spaces, and albums based on tags just don’t work at all.

    Looks to be something they’ve partially fixed in the latest beta, I’m running 2.0.2 in a test environment and replacing spaces with minus works for me. However, it fails on tags with spaces, and albums based on tags just don’t work at all.

    Thread Starter gwark

    (@gwark)

    With 2.0.7 it looks like things work if I convert the spaces to -, so I’ve done that for now, though ideally it would work with the tags directly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘nggtags shortcode (2.0) issue’ is closed to new replies.