Get url thumbnail WordPress


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. //Get the Thumbnail URL
  3. $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 140,140 ), false, '' );
  4. echo $src[0];
  5. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.