• I found an old thread that said that the tags_compare ‘AND’ parameter not working was a known bug, but that it was to be fixed in the next release. That was many months ago so I’m wondering – does anyone know if that bug was indeed fixed? Has it perhaps resurfaced?

    I have Version 2.2.9.2 of the plugin installed on WordPress 3.0.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @lac582 – And the question back to you. Have you tried the ‘AND’ compare? And are you having issues?

    Thread Starter lac582

    (@lac582)

    Yes, this is the code I have in my template:

    $media_items = get_attachments_by_media_tags('media_tags=pictures,episode 1&tags_compare=AND&numberposts=10&return_type=li&search_by=name');
    if ($media_items) {
        echo "<ul>". $media_items. "</ul>";
    };

    But instead of displaying images with only both of those tags it’s giving me all photos tagged with ‘pictures’, even those not tagged ‘episode 1’. I had it with the default for search_by before, decided to try ‘name’, but same result.

    Hmm. Well it might very well still be a bug. I’ll work on a quick patch. Thanks for bringing this to my attention.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media Tags Plugin – tags_compare Not Working?’ is closed to new replies.