Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] nggtags gallery doesn't work

  • Resolved clintonb

    (@clintonb)


    Hello,

    Simply put, the shortcode “nggtags gallery” isn’t working.

    I’ve uploaded several images into a gallery. Added “test1” (without the quotes) to the tag field.

    In my post I put “[nggtags gallery=test1]” (without the quotes), and nothing appears. I look at the source code for the actual page, and there’s no html at all in regards to this.

    I’ve gone through disabled all my plugins. Same still occurs.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve done more testing. And there is some serious functionality issues with NextGen Gallery. The latest version 1.9.6 anyhow.

    I tagged 5 different photos in a gallery, each with different tags:
    Photo 1 was tagged with “test1”.
    Photo 2 was tagged with “test2”.
    Photo 3 was tagged with “test3”.
    Photo 4 was tagged with “test4”.
    Photo 5 was tagged with “test5”.

    In a new post I put the following:
    [nggtags gallery=test1]
    [nggtags gallery=test2]
    [nggtags gallery=test3]
    [nggtags gallery=test4]
    [nggtags gallery=test5]

    Result: Only the last two photos (tagged “test4” and “test5”) show up in the post.

    In addition to this, no photos with spaces in the tag will appear. (e.g. [nggtags gallery=”please work”]). This DID work in NGG version 1.9.3.

    i have the same problem with the tag-cloud (and search)

    Mizagorn

    (@mizagorn)

    I just found out about the [ nggtags ] shortcode earlier today, and I was having the same frustrating results with some tags not generating a gallery.

    As an aside, clintonb made a good point in that NextGen Gallery doesn’t do us the courtesy of some sort of an HTML comment along the lines of “Nothing found…”, so that we can see the shortcode is at least being recognized. A good plugin should allow users to test results. The File Gallery plugin does that, and my hat’s off to them.

    Anyway, I got to thinking about the relationship between tags and slugs. Using PHPMyAdmin, what I found was that I had several post tags (taxonomy=”category” in the wp_term_taxonomy table) that had the same name as tags I put on my images (taxonomy=”ngg_tag” in the same table). I browsed the WordPress table wp_terms and discovered that my media tags that had the same name as the post tags had a “-2” appended to them.

    For example, my media tag of “kitchen”, which already existed as a post tag, was changed to “kitchen-2” as the slug. Apparently, NGG is using the slug and not the tag to generate an nggtags gallery.

    After some cleanup (I deleted my post tags and got rid of the “-2” on my media tags because I’m at an early enough stage to where I don’t really have any posts – if you do have a lot of posts, you’ll want to find out what the actual slug is for your media tag and use that slug as your nggtags gallery= parameter) everything is working beautifully.

    I’m developing locally right now, so I can’t give an example.
    My only regret is that the NextGen GalleryView add-on plugin does not work with the nggtags shortcode. If I get time, I’ll look into that and post some PHP mods… but that’s a separate topic.

    Hopefully this fixes someone’s problems! Good luck. 🙂

    Debra Braun

    (@debrafoesch)

    I too have been searching for a solution to make the tags searchable in the 5000 images my customer has on their site. http://www.skalitzkyjewelers.com I found this post in changing the php but it’s 2 years old. Does anyone know if its a legitimate solution?

    http://wordpress.org/support/topic/plugin-nextgen-gallery-nextgen-gallery-search-with-wp30

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] nggtags gallery doesn't work’ is closed to new replies.