get_the_post_thumbnail(get_the_ID(),'medium') WP4.4 issue with srcset
-
I have the same issue. The image is breaking in general about WP4.4 my srcset attribute is combining url and directory in the latest attributes.
<img width="200" height="200" src="https://domain.com/wp-content/uploads/2015/11/image.png" class="attachment-medium size-medium wp-post-image" alt="image description" srcset="https://domain.dev.designcompany.com/wp-content/uploads//media/DriveD/www/www.domain.dev/wp-content/uploads/2015/09/image-80x80.png 80w, https://domain.dev.designcompany.com/wp-content/uploads//media/DriveD/www/www.domain.dev/wp-content/uploads/2015/09/image.png 200w" sizes="(max-width: 200px) 100vw, 200px">
This results in a broken image.
- The topic ‘get_the_post_thumbnail(get_the_ID(),'medium') WP4.4 issue with srcset’ is closed to new replies.