Title: maxellinger's Replies | WordPress.org

---

# maxellinger

  [  ](https://wordpress.org/support/users/maxellinger/)

 *   [Profile](https://wordpress.org/support/users/maxellinger/)
 *   [Topics Started](https://wordpress.org/support/users/maxellinger/topics/)
 *   [Replies Created](https://wordpress.org/support/users/maxellinger/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/maxellinger/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/maxellinger/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/maxellinger/engagements/)
 *   [Favorites](https://wordpress.org/support/users/maxellinger/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Can you programmatically set inline images to a new registered image size?](https://wordpress.org/support/topic/can-you-programmatically-set-inline-images-to-a-new-registered-image-size/)
 *  Thread Starter [maxellinger](https://wordpress.org/support/users/maxellinger/)
 * (@maxellinger)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/can-you-programmatically-set-inline-images-to-a-new-registered-image-size/#post-18020895)
 * Thanks for the response! Here is the code I wrote to accommodate every, single,
   darn, case in case it’s helpful to someone down the line:
 * [https://gist.github.com/mellinger/b337f3eea37601f10701dc45a7af6183](https://gist.github.com/mellinger/b337f3eea37601f10701dc45a7af6183)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Can you programmatically set inline images to a new registered image size?](https://wordpress.org/support/topic/can-you-programmatically-set-inline-images-to-a-new-registered-image-size/)
 *  Thread Starter [maxellinger](https://wordpress.org/support/users/maxellinger/)
 * (@maxellinger)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/can-you-programmatically-set-inline-images-to-a-new-registered-image-size/#post-18009000)
 * Thanks for responding! They were using the TinyMCE (“Classic”) editor.
 * There’s clearly more markup in the database than what appears when I view as 
   HTML, because the frontend display contains a reference to the original image
   while the HTML editor just shows a pretty vanilla tag.
 * Here’s an example of the frontend markup, see how the original is referenced 
   and exists in the CDN but the src value is set to a specific, legacy size that
   didn’t get generated on import.
 * How it exists on the frontend:
 *     ```wp-block-code
       <img decoding="async" data-attachment-id="4975" data-permalink="https://news.vumc.org/Hope/meet-the-people-who-bring-hope-to-families-every-day/pioneer1-7/" data-orig-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5.jpg" data-orig-size="1417,1416" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;Susan Urmy&quot;,&quot;camera&quot;:&quot;Canon EOS 5D Mark IV&quot;,&quot;caption&quot;:&quot;Environmental portrait of Chetan Mukundan, MD, and his dog Brie at Radnor Lake for community pediatricians for Face of Hope profile for Hope magazine.\r\rPhotos by: Susan Urmy&quot;,&quot;created_timestamp&quot;:&quot;1638520211&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;200&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.0015625&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="pioneer1" data-image-description="" data-image-caption="<p>Photo by Susan Urmy</p>" data-medium-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-450x450.jpg" data-large-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-790x790.jpg" tabindex="0" role="button" class="size-medium wp-image-4975" src="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-300x300.jpg" alt="" width="300" height="300">
       ```
   
 * How it exists in the editor:
 *     ```wp-block-code
       [caption id="attachment_4975" align="alignleft" width="300"]<img class="size-medium wp-image-4975" src="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-300x300.jpg" alt="" width="300" height="300" /> Photo by Susan Urmy[/caption]
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Implement Gutenberg publish confirmation message](https://wordpress.org/support/topic/implement-gutenberg-publish-confirmation-message/)
 *  Thread Starter [maxellinger](https://wordpress.org/support/users/maxellinger/)
 * (@maxellinger)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/implement-gutenberg-publish-confirmation-message/#post-17899469)
 * Thanks, Ryan! I had no idea that panel existed, and I am embarrassed. That is
   perfect, thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Plugin is stripping CSS attribute selector](https://wordpress.org/support/topic/plugin-is-stripping-css-attribute-selector/)
 *  Thread Starter [maxellinger](https://wordpress.org/support/users/maxellinger/)
 * (@maxellinger)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-is-stripping-css-attribute-selector/#post-11915718)
 * [@westonruter](https://wordpress.org/support/users/westonruter/) Fixed it perfectly,
   thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Plugin is stripping CSS attribute selector](https://wordpress.org/support/topic/plugin-is-stripping-css-attribute-selector/)
 *  Thread Starter [maxellinger](https://wordpress.org/support/users/maxellinger/)
 * (@maxellinger)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-is-stripping-css-attribute-selector/#post-11912555)
 * Great, thanks!

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