not working with 2013 theme
-
Here’s a sample of the code I’m using to display the images attached to a page:
$attachments = get_posts($args); if($attachments) { foreach($attachments as $attachment) { $content = '<a href="' . guid . '">'; $content .= wp_get_attachment_image($attachment->ID, array(160,160)); $content .= '</a>'; $content = slb_activate($content); echo $content; } }
The rendered page shows all the 160×160 thumbs as expected but when I click one of them it just takes me to the full size image as if lightbox weren’t loaded. Here’s an excerpt of the rendered HTML for one image (I’ve removed the actual domain name for security reasons):
<a href="https://www.x.com/dev/wp-content/uploads/gallery-101.jpg"><img width="160" height="160" src="https://www.x.com/dev/wp-content/uploads/gallery-101-160x160.jpg" class="attachment-160x160" alt="gallery-10" /></a>
The jQuery version being used is v1.11.2. Simple Lightbox plugin is activated and, on the settings page, is enabled and the enabled for posts and pages checkboxes are checked. No javascript errors show on the console.
The PODS plugin is also installed on this wordpress.
Any suggestions on what else I should do to debug?
- The topic ‘not working with 2013 theme’ is closed to new replies.