wp galleries do not get picked up by plugin
  • Hi,

    i need a bit of help. i have la latest plugin version and wp 2.9.1
    i am displaying galleries using wp's native gallery method. the thing is, they do not get picked up by wp-prettyPhoto. Everything else works. video, photos in post. But not galleries.

    i am not a specialist in js but when i added this in the header
    _______________________________
    jQuery.noConflict();
    jQuery(document).ready(function() {
    var items = jQuery('a').filter(function() {
    return jQuery(this).attr('href').match(/\.(jpg|png|gif)/);
    });
    if (items.length > 1){
    var gallerySwitch="[alltogethernow]";
    }else{
    var gallerySwitch="";
    }
    items.attr('rel','zoom'+gallerySwitch);
    jQuery("a[rel^='zoom']").prettyPhoto();
    });
    __________________________________
    it got picked up by the plugin but there are now two transparent masks and it looks pretty bad.
    let me know if there is anything i can do to get it working

    thanks,

    Cezar
  • I had the same problem, but I think I just fixed it. According to the WP Codex (http://codex.wordpress.org/Gallery_Shortcode), the gallery shortcode defaults to link to the attachment page. I changed my shortcode to:

    [gallery link="file"]

    and it started working just fine.
  • I already have[gallery link="file"] but still the image opens in a new window. My site is pueblointeriors.com

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!