SHARE
TWEET

Untitled

a guest Nov 14th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             $imageUrl = "";
  2.             if (has_post_thumbnail( get_the_ID() ) ){
  3.                 $image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'medium' );
  4.                 $imageUrl = $image[0];
  5.             }
  6.             else {
  7.                 $imageUrl = get_template_directory_uri()."/img/placeholder.png";
  8.             }
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