How do I call the URL of a post thumbnail?

Tips and tricks from Tamara Olson Designs

Something like this:


$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
Text_2


Share Your Thoughts

About the Author

TamaraAuthorPhoto

Tamara Olson is a self-employed UX designer and WordPress developer living in New York City.

Tamara Olson Designs Case Studies