SHARE
TWEET

Untitled

a guest Feb 17th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(has_post_thumbnail()){
  2.     $thumbnail_url = get_the_post_thumbnail_url(null, "large");
  3.  
  4.     //echo '<a href="'.$thumbnail1  a.'" data-featherlight="myimage.png">';
  5.  
  6.     printf('<a href="%s" data-featherlight="image">', $thumbnail_url);
  7.     the_post_thumbnail( "large", array("class" => "img-fluid") );
  8.     echo '</a>';
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top