wp get attachment image always gives me thumbnail

Posted by Prem Tiwari | Updated on

The real workhorses behind wp_get_attachment_image_src are image_downsize & image_get_intermediate_size.

Between the two, they’ll attempt to find the largest image available that fits within the constraints of the required size.

The return value of wp_get_attachment_image_src will be:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers