Title: srcset missing when using content shortcode
Last modified: September 27, 2019

---

# srcset missing when using content shortcode

 *  [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/srcset-missing-when-using-content-shortcode/)
 * I am using the shortcode below to include some content into an event description(
   Events Calendar plugin) and my images are missing the srcset attributes I see
   when looking at the original post:
 *  `[content type=topic name=my-topic]`
 * Any idea why this may be happening?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/srcset-missing-when-using-content-shortcode/#post-11976598)
 * For now, I have worked around this issue by adding the following filter:
 *     ```
       // Add response image filter to custom content shortcode content
       add_filter('doing_ccs_shortcode', 'wp_make_content_images_responsive', 20);
       ```
   
 * I believe this should be fixed in the plugin. Note sure if it’s just a matter
   of filter priority on the_content.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/srcset-missing-when-using-content-shortcode/#post-11977198)
 * I changed my workaround as follows:
 *     ```
       remove_filter('the_content', 'wp_make_content_images_responsive');
       add_filter('the_content', 'wp_make_content_images_responsive', 13);
       ```
   
 * I also found one my theme options was interfering with srcset/sizes, so I disabled
   that option.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘srcset missing when using content shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

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

 * 2 replies
 * 1 participant
 * Last reply from: [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/srcset-missing-when-using-content-shortcode/#post-11977198)
 * Status: not resolved