I have the 2 new added sized that I am testing:
// testing
add_image_size('new-small', 500, false);
add_image_size('medium-large', 768, false); // just added today for devices support
image outputted html:
<img class="alignnone size-full wp-image-24" src="http://localhost:8888/pfj_blog/wp-content/uploads/2016/01/test-image.jpg" alt="test-image" width="932" height="524" srcset="http://localhost:8888/pfj_blog/wp-content/uploads/2016/01/test-image-500x281.jpg 500w, http://localhost:8888/pfj_blog/wp-content/uploads/2016/01/test-image-768x432.jpg 768w, http://localhost:8888/pfj_blog/wp-content/uploads/2016/01/test-image.jpg 932w" sizes="(max-width: 932px) 100vw, 932px">
I'm watching the network tab in chrome, and when I reload the browser at say 500x900 (width height), it loads the correct image at first, then immidiately loads the natural image after:
Has anyone run into that or know how to fix it?
wp_get_attachment_image_src( $attachment_id, 'medium-large');
? – Kivylius Jan 20 '16 at 12:09