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.

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


Leave a Reply

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