Title: Predefined thumbnails with new shortcode?
Last modified: October 30, 2024

---

# Predefined thumbnails with new shortcode?

 *  Resolved [anonamix](https://wordpress.org/support/users/anonamix/)
 * (@anonamix)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/predefined-thumbnails-with-new-shortcode/)
 * I don’t see how to use existing predefined thumbnails generated from the media
   library like you used to be able to with the old widget. The old widget had a
   nice dropdown list where I could choose which size to use.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/predefined-thumbnails-with-new-shortcode/#post-18105827)
 * Hey [@anonamix](https://wordpress.org/support/users/anonamix/),
 * The shortcode has an undocumented parameter called **thumbnail_build** that can
   be used to have it list predefined thumbnails instead of WPP ones. I don’t recall
   the exact reason _why_ it’s undocumented though (probably because there are some
   use cases where it won’t work as expected? It’s been a while since I last touched
   that part of the code) so keep that in mind.
 * To use it, you need to also make sure that:
    1. You define the width (in pixels) of the thumbnail with **thumbnail_width**, 
       and it needs to match the width of your predefined thumbnail
    2. You define the height (in pixels) of the thumbnail with **thumbnail_height**,
       and it needs to match the height of your predefined thumbnail
    3. You set the **thumbnail_build** parameter with ‘predefined’ as its value
 * So, let’s imagine that you have a predefined image size called article_thumbnail
   and that its dimensions are 100px x 75px. Your shortcode then should look something
   like this:
 *     ```wp-block-code
       [wpp thumbnail_build='predefined' thumbnail_width=100 thumbnail_height=75]
       ```
   
 * Of course, check your theme’s code to find the actual size you want to use and
   adjust the shortcode accordingly.
 * If you have any comments / questions please let me know.

Viewing 1 replies (of 1 total)

The topic ‘Predefined thumbnails with new shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/predefined-thumbnails-with-new-shortcode/#post-18105827)
 * Status: resolved