Thanks but that doesn’t work for me. I get this message :
Trying to get property of non-object in … on line 36
Dear Ischatzkin,
Can you provide a code example ? I have been using
echo '<img src="' . esc_url( wp_get_attachment_image_url( $image, 'small', true ) ) . '" >';
but i cannot change the image size to small or thumbnail. It always stay on full size.
thanks