How to get WordPress featured image source (src)

With the WordPress function: wp_get_attachment_image_src, you can get the src of the featured image.

Instructions
Add this code to your page/post template file where you want to use the featured image source.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *