Title: Incorrect thumbnail sizes loading with shortcode
Last modified: November 22, 2016

---

# Incorrect thumbnail sizes loading with shortcode

 *  Resolved [lenehanj](https://wordpress.org/support/users/lenehanj/)
 * (@lenehanj)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/)
 * Hi David
 * I am displaying the first image of this page:
    [https://www.eupati.eu/eupati-news/national-updates/](https://www.eupati.eu/eupati-news/national-updates/)
 * …using this shortcode…
    [mla_gallery ids=”12190″ columns=”1″ mla_caption=”{+caption
   +}” link=”file” size=”medium” mla_markup=figure-blog]
 * …and this template…
 * Name:
    figure-blog
 * Arguments:
    Blank
 * Open:
    <div id='[+selector+]’ class=’gallery galleryid-[+id+] gallery-columns-[
   +columns+] gallery-size-[+size_class+]’ style=”padding:20px;margin-bottom:20px;
   border: solid 0px #c0c0c0; width:50%;”>
 * Row Open:
    Blank
 * Item:
    <figure> [⌊[+image_alt+]⌉](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/[+link_url+]?output_format=md)
   </figure>
 * Row Close:
    Blank
 * Close:
    </div> <br style=”clear: both” />
 * The image that is rendering on the page is a full size image and not the specified“
   Medium” size in the shortcode.
 * I assume there is something incorrect with my template.
 * Can you see anything obvious that might be causing the issue?
 * Kind regards
 * John L

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/#post-8470369)
 * Thanks for your question and for the link to the example on your site; very helpful.
 * It looks like the HTML in the Item: section of your template has been distorted
   in the body of your post. Can you re-post the template surrounded by “code” tags?
   You can find a Code button at the top of the edit window that will generate them
   for you. Thanks!
 *  Thread Starter [lenehanj](https://wordpress.org/support/users/lenehanj/)
 * (@lenehanj)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/#post-8470573)
 *     ```
       Name:
       figure-blog
   
       Arguments:
       Blank
   
       Open:
       <div id='[+selector+]' class='gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]' style="padding:20px;margin-bottom:20px;border: solid 0px #c0c0c0; width:50%;">
   
       Row Open:
       Blank
   
       Item:
       <figure>
       <a href="[+link_url+]"  class="fbx-link"><img src="[+link_url+]" alt="[+image_alt+]" style="display: block;margin: 0 auto;"></a>
       </figure>
   
       Row Close:
       Blank
   
       Close:
       </div>
       <br style="clear: both" />
       ```
   
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/#post-8470689)
 * That’s much better, thanks.
 * In your Item section img tag you have `src="[+link_url+]"`. The `link_url` is
   set from the hyperlink associated with each item. Since you specified `link=file`
   you get the URL of the full-size image file.
 * The substitution parameter you want is `[+thumbnail_url+]`, which is set from
   the thumbnail image displayed for each item. Since you specified `size=medium`
   this should be the URL of the medium intermediate size image for the item.
 * Try changing your img tag to:
 *     ```
       <img src="[+thumbnail_url+]" alt="[+image_alt+]" style="display: block;margin: 0 auto;">
       ```
   
 * I am marking this topic resolved, but please update it if you have any problems
   or further questions regarding the above solution. Thanks for your interest in
   the plugin.
 *  Thread Starter [lenehanj](https://wordpress.org/support/users/lenehanj/)
 * (@lenehanj)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/#post-8477884)
 * Perfect, thank you for your help.
 * J
    -  This reply was modified 9 years, 6 months ago by [lenehanj](https://wordpress.org/support/users/lenehanj/).

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

The topic ‘Incorrect thumbnail sizes loading with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [lenehanj](https://wordpress.org/support/users/lenehanj/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-sizes-loading-with-shortcode/#post-8477884)
 * Status: resolved