Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using WP 3.5.1 and lightbox plus 2.5.5

I have my lightbox set to "Use for WP Gallery"

Lightbox is working successfully on one of my posts with a single image, but on another post I have 3 images and they are set to "media file" but when I go to the post, they are navigating to the attachment page instead, thus lightbox is not working.

Any thoughts on why its navigating to the attachment page even though the gallery has been set to media file? I have tried recreating the gallery with no success as well as reuploading the images.

Gallery example --> http://santacruzsurvivors.com/2013/01/20/aquaponics-construction-part-2/

Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /home/www/santacruzsurvivors.com/wp-includes/functions.php on line 2839

Notice: Undefined variable: supported in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/library.php on line 396

Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 166 in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/library.php on line 396

Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/library.php on line 396

Notice: Undefined index: page in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/administrator.php on line 16

Notice: Undefined variable: format in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/library.php on line 456
Notice: Undefined variable: class in /home/www/santacruzsurvivors.com/wp-content/themes/tank/inc/library.php on line 359
class="single single-post postid-30 single-format-standard logged-in admin-bar no-customize-support content-r" layout='2'>
share|improve this question
    
Are you adding rel="lightbox" as per the plugin instructions to each image ? –  Wyck Jan 26 '13 at 0:36
    
instructions indicate if "Use for WP gallery" is checked that all galleries will be converted to lightbox galleries by default. –  Brian Jan 26 '13 at 0:40
    
the js says $("a[rel*=lightbox]").colorbox so either change the js or add a rel tag. –  Wyck Jan 27 '13 at 6:41
1  
This is the ticket for Wordpress where they are fixing this bug. It looks like it might be fixed in version 3.5.2. core.trac.wordpress.org/ticket/23298. –  Jay K Mar 14 '13 at 17:50
    
Try the cleaner gallery plugin. In the settings you can select the image file as the link and it works. wordpress.org/extend/plugins/cleaner-gallery –  THRIVE May 1 '13 at 5:54
add comment

1 Answer 1

up vote 2 down vote accepted

I have the Same issue, its a bug in 3.5.1

You have to select "Attachement page" from the dropdown menu, then go back to "Media file".. This will add gallery link="file" ids= to your script (which is missing)

share|improve this answer
    
Thanks. This solved the issue. What an annoying bug. –  Brian Jan 29 '13 at 1:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.