Using Lightbox images in template
-
I am building a site for a client and have built a template that grabs thumbnails from certain posts, and displays them — portfolio-style — on the page.
I’d like to use SLB with this image list, but I can’t seem to get it to work. I’ve looked through your documentation, but I don’t find anything about this.
The HTML it generates is a fairly long series of these….
<h4>
” title=”<image title>”>
” class=”attachment-thumbnail size-thumbnail wp-post-image” alt=”” />
<br>
Title of Image
</h4>The PHP is:
$imageurl = get_the_post_thumbnail_url(get_the_ID(),’large’);
$title = get_post(get_post_thumbnail_id())->post_title; //The Title
echo ‘‘;
the_post_thumbnail(‘thumbnail’);
echo ‘‘;Thank you for your help!
- The topic ‘Using Lightbox images in template’ is closed to new replies.