Title: Duplicate attribute srcset with thumbnails
Last modified: August 21, 2016

---

# Duplicate attribute srcset with thumbnails

 *  [mikedev](https://wordpress.org/support/users/mikedev/)
 * (@mikedev)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-attribute-srcset-with-thumbnails/)
 * When using WP Retina 2x HTML srcset method with the_post_thumbnail(‘thumbnail’),
   I get the validation error “Duplicate attribute srcset”.
 * When using the_post_thumbnail(), I don’t get the validation error “Duplicate 
   attribute srcset”, but I need to specify the ‘thumbnail’ size.
 * (The duplicate attribute can not be seen by viewing source in the browser. It
   can only be seen by validating at [http://validator.w3.org/](http://validator.w3.org/).)
 * Validate this page to see the error: [http://craftlibrarian.com/sleep-like-a-tiger/](http://craftlibrarian.com/sleep-like-a-tiger/)
 * The same duplicate srcset is in WooCommerce here: [http://demo.swampsidestudio.com/product-category/products-for-therapists-and-counselors/](http://demo.swampsidestudio.com/product-category/products-for-therapists-and-counselors/)
 * Any ideas how to prevent the duplicate attribute srcset?
 * [https://wordpress.org/plugins/wp-retina-2x/](https://wordpress.org/plugins/wp-retina-2x/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/duplicate-attribute-srcset-with-thumbnails/#post-4720285)
 * Are they using srcset is those plugins already?
    Anyway, you shouldn’t use this
   method for now, it only works on Safari…

Viewing 1 replies (of 1 total)

The topic ‘Duplicate attribute srcset with thumbnails’ is closed to new replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

## Tags

 * [duplicate](https://wordpress.org/support/topic-tag/duplicate/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/duplicate-attribute-srcset-with-thumbnails/#post-4720285)
 * Status: not resolved