[ Moderator note: please wrap code in backticks or use the code button. ]
<?php if (
(function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { /* if post has a thumbnail */ ?>
<?php
the_post_thumbnail('post-thumb', array('class' => 'post-thumb')); ?>
<?php } ?>
-this code is at single post php of my theme
the 1st php code: is a checker for thumbnail existing on the post
the 2nd php code: calls the thumbnail in the specified post
(this is where I want to insert the rel =”lightbox”)
Hoping it can work on the thumbnail(featured image on the post)
however I tried dozens of times but still it doesn’t make slimbox the recognize the images to animate -any ideas?