Get thumbnails with array sizes parameter

I am trying to get both full and thumbnail images from post with wp_get_attachment_image_url:

wp_get_attachment_image_url( get_the_ID(), array(‘thumbnail, full’));

I know that by default size is thumbnail and I read from documentation that I can pass and array of sizes, but with above example, I am getting an error:

A non-numeric value encountered

The documentation is not clear about how to pass an array of sizes as parameter.

Read more here:: Get thumbnails with array sizes parameter

Leave a Reply

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