Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Multiple Post Thumbnails / Featured Images in WordPress

Wish you could showcase more than one image for your WordPress posts? That single featured image just isn’t cutting it, especially when you’ve got multiple eye-catching visuals that deserve the spotlight.

But by default, WordPress only lets you highlight one image per post. This means that your best photos or product shots often get buried further down the page.

We’ve seen this frustrate bloggers, portfolio owners, and eCommerce sites alike.

But here’s the good news: with the right tools, you can easily add multiple featured images and instantly make your posts more engaging and click-worthy.

In this tutorial, we’ll show you the easiest ways to add extra featured images to your WordPress posts – no coding required. 🙌

How to add multiple post featured images in WordPress

Why Add Multiple Featured Images in WordPress?

The answer is simple: Because one image isn’t always enough.

Adding multiple featured images lets you showcase more visuals across different sections of your site, like your homepage, blog archive, or category pages. All without repeating the same image or hiding great content deeper in the post.

Now, featured images are a default WordPress feature, and you’ll find them in every WordPress theme. They help bring life to your content and make your blog posts more engaging. Plus, they help capture users’ attention and make them click on your article.

But there are situations where you might need to add multiple post thumbnails to your WordPress website.

Maybe a client has a special requirement to use more than one thumbnail, or your website design requires various images.

For example, sections like the homepage or archive pages (the blog and category section) require different image sizes. In this case, having an option to display multiple thumbnails is really useful.

On WPBeginner, we use multiple featured images for archive pages, social media, and thumbnails that appear in a blog post.

Here’s a thumbnail that appears within the blog post:

Thumbnail that appears in post

On the other hand, the images that appear on archive pages are different.

Here’s a look at how thumbnails appear in the blog section on WPBeginner:

Thumbnails on archive pages

Now, we’ll show you how to add multiple thumbnail images in WordPress, as well as a bonus tip. Here’s a quick overview of the topics we will discuss in this guide:

Ready? Let’s get started.

The simplest way of adding multiple featured images without plugins is by manually placing them in your content in the WordPress content editor.

First, you can upload your primary thumbnail using the default featured image option in the WordPress content editor.

Simply click the gear icon at the top to open the settings panel on the right and then go to the ‘Featured image’ section.

Upload primary featured image in content editor

After that, you can click the ‘Set featured image’ area, and the WordPress media uploader will pop up.

Go ahead and upload your picture or select an image from your existing media library.

Upload your image

After selecting an image, simply click the ‘Set featured image’ button.

The next step is to add an image block anywhere in the content to insert another featured image.

For this, you’ll want to click the ‘+’ button and then add an image block where you want to display the secondary featured image.

The WordPress Image block

Once the image block is added, simply upload the thumbnail to your blog post.

Alternatively, you can select an existing image from your WordPress website’s media library or use the ‘Insert from URL’ option.

Upload or select an image from media library

With that done, you can click ‘Update’ or ‘Publish’ to make it live.

You can then visit your WordPress website to see multiple featured images.

Preview of multiple featured images

📝 Alternative: With WordPress, you can even use the gallery block and show multiple featured images. This is especially useful if you have an online store or need to show numerous high-quality product images.

If you’re looking for a more advanced option, we recommend the Envira Gallery plugin. It lets you display a responsive image gallery with lightbox effects, add watermarks to protect your content, and include social sharing buttons to boost engagement.

For more details, please see our guide on how to create an image gallery in WordPress.

If you want to show a different featured image for articles in a particular category, then the best solution is to use the Category Featured Image plugin.

First, you’ll need to install and activate the Category Featured Image plugin. If you need help, feel free to check out our guide on how to install a WordPress plugin.

Once the plugin is active, you can go to Post » Categories from your WordPress dashboard. You’ll now see a new ‘Featured image’ option when adding new categories or subcategories.

Simply click the ‘Add new image’ button to get started.

Add category featured images

Once you click the button, the WordPress media uploader will pop up.

You can upload your image from your computer’s local drive or select one from your WordPress media library. After that, simply click the ‘Set featured image’ button.

Upload your image

You can also edit existing categories on your website and add a featured image.

To do this, first hover over any current category and click the ‘Edit’ option.

Edit an existing category

After that, scroll down to the ‘Featured image’ section.

Go ahead and click the ‘Add new image’ button and upload your featured image for the category.

Add a featured image to existing category

Don’t forget to click the ‘Update’ button when you’re done.

And that’s it!

You can now go back to the ‘Categories’ page in your WordPress admin panel and see the featured image for each category.

View featured image for each category

Here are some common questions we get asked about using more than one featured image in WordPress.

How do I add a post thumbnail in WordPress?

To add a featured image (also called a post thumbnail), simply open the post or page editor. On the right-hand side, look for the Featured Image panel, click Set featured image, and upload or select an image from your Media Library. Then click Set featured image again to confirm.

How do I auto-set the featured image in WordPress?

The easiest way is to use a plugin like Default Featured Image. It adds a simple option to your Media settings where you can upload a fallback image. WordPress will then use that image automatically for any post or page that doesn’t have a featured image set.

Want to make sure your posts look great on social media, too? We recommend All in One SEO (AIOSEO). It lets you set a default image for platforms like Facebook and Twitter, so even if you forget to add a featured image, your content still shows up with the right visuals.

Can I bulk edit featured images in WordPress?

Yes, and the easiest way to bulk edit featured images in WordPress is by using a plugin like Quick Featured Images.

All you have to do is install the plugin, choose your filters (like category or post type), select the new image you want to apply, and then run the bulk update with a single click.

Will adding many images slow down my website?

Yes, loading multiple high-resolution images can affect your website’s performance. It’s important to always optimize your images for the web before uploading them.

This compresses the file size without sacrificing too much quality, ensuring your pages still load quickly for your visitors.

We hope this article has helped you learn how to add multiple post thumbnails / featured images in WordPress. Next, you might want to see our guides on:

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

59 CommentsLeave a Reply

  1. Having multiple post thumbnails seemed like a complex task until I found this tutorial. Your explanation and recommended plugins made it straightforward. Thanks for simplifying the process!

  2. This is very handy for many purposes that special images might be needed (eg mobile-image).

    BUT
    Is it possible for your future plans, to provide the ability of an array of images, instead of single?

    For example, the developer might need to add an album-images instance, in order that user can select multiple images to be provided to an album.

    • We will look into possibly adding that in the future but you may need to look into a plugin for that level of customization.

      Admin

  3. hi, everything works down to this paragraph.

    “Even though you can add a secondary featured image in your WordPress admin, it will not display on your site until you configure your theme. All you need to do is add the following code inside your post loop where you want to display it. This could be in your single.php (for single posts), archive.php (only for archive pages), etc.”

    Can you explain a little more about where to place this part of the code within the theme? Thx!

  4. I want to add two images; one as a thumbnail (in search engine, archives, homepage or any other place it showed) and another one as featured image (Reader will see this image only at the time of reading content).

    Is there any solution for my problem?

    • You would want to reach out to the support for the theme you are using for that type of customization.

      Admin

  5. Hi. Could you possibly update older articles? This one uses a plugin that hasn’t been updated in over 2 years.

    Just wondering.

    • Hi, Please tell me how to access the second thumbnail. For example we can access the default featured image by “the_post_thumbnail()”.

  6. Why isn’t the “Multiple Post Thumbnails” updated? It said that it was last updated 2 years ago. It needs to be updated because some people cannot use plugins that wasn’t updated since 2-3 years ago…

  7. I hope you can help me. Can you tell me if this plugin can do what I need?

    I need to be able to add a second featured image to a post (or custom post type) that is in more than one category. On the archive page for one of the categories, I need for the second featured image thumbnail to show, and everywhere else on the site I need for the first featured image thumbnail to show.

    Thanks for whatever you can tell me!

  8. I use genesis and i cannot figure out where to paste this snippet so the 2nd featured image shows only as the thumbnail on the home and category pages. Please help.

  9. Great Plugin! Could it be possible to make it so when there is a secondary image set, that only the secondary image shows?

  10. Can you add it to just one page in the admin area. Like if i wanted to just add it to the front-page.php file in the admin area so if you go to edit another page it is not on it in the admin area?

  11. Hi i’m new with wordpress and i hope you can help me :) with this

    i need to use this to my sidebar.php but now showing the secondary image

  12. Hi, I am using this plugin with NewsPaper WordPress theme but everytime it display the latest secondary image added in all post.

    Like I display 6 posts in sidebar, and secondary image was added in just first 2 posts, but the same image will display in all 6 posts.

    Please tell me how can I use this with NewsPaper WordPress theme.

  13. Is there a way to use this method to assign a secondary featured image based on a category that is chosen? I am building a site for a reclaimed wood company that does all kinds of projects and some of the project photos have multiple categories within them. For instance, one project we did has items throughout the house that we did, and we included the category “Shelves” to a posting that the featured image doesn’t show any shelves. That project will be displayed within a page of shelves and have the featured image of a counter top. Is there any way to make it display one of the photos of the shelves when it is displayed in this category?

    • there is always an id for any post type so in your case if it is “shelves” then ‘post_type’ => ‘shelves’ will be in your code.

  14. It’s really working on post. bt i wanna set it on custom post. How can i add multiple feature image in custom post?

  15. It might be very easy, but I cannot seem to get it right…
    How do I get it to show up in all my post types? The ‘post_type’ => ‘post’ only makes it available in WP Posts. I need it in ‘page’ and ‘event’ as well.

    Please advice.

  16. for multiple feature images copy this code in your functions,php

    if (class_exists(‘MultiPostThumbnails’)) {

    for($i=2; $i ‘Secondary Image-‘.$i,

    ‘id’ => ‘secondary-image-‘.$i,

    ‘post_type’ => ‘page’

    ));

    }

    }

    In order to display your featured image paste this code in your loop of your single.php/page.php where you want to display the images.

    if (class_exists(‘MultiPostThumbnails’)) :

    for($i=2; $i<=5; $i++)

    {

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image-'.$i);

    }

    endif;

  17. this is a very useful tutorial.. So the admins doesn`t need to go to widgets as all items could be added at once ( if the items are unique to that post ./ page ) .. Does anyone of you guys know how we could have a similar one for featured text and extra text areas within the post ?

    • I solved it like this :)

      // in function.php

      if (class_exists(‘MultiPostThumbnails’)) {

      new MultiPostThumbnails(array(

      ‘label’ => ‘Secondary Image’,

      ‘id’ => ‘secondary-image’,

      ‘post_type’ => ‘product’

      ) );

      new MultiPostThumbnails(array(

      ‘label’ => ‘Third Image’,

      ‘id’ => ‘third-image’,

      ‘post_type’ => ‘product’

      ) );

      }

      // in template

      if (class_exists(‘MultiPostThumbnails’)) :

      MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’);

      endif;

      if (class_exists(‘MultiPostThumbnails’)) :

      MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘third-image’);

      endif;

  18. I solved it like this (based on code provided in this article, its comments and other sources):

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’, NULL, ‘medium’);
    $mptId = MultiPostThumbnails::get_post_thumbnail_id(‘post’, ‘secondary-image’, $post->ID);
    $p = get_post($mptId);
    echo “”;
    echo apply_filters(‘the_excerpt’,$p->post_excerpt);
    echo “”;

  19. Is it possible to just return the image url without the tag when calling it up within the template file? Something similar to:

    //Get the Thumbnail URL
    $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(320,240), false, ” );
    echo $src[0];

    EDIT: Yes, there is. Use this —
    $custom = MultiPostThumbnails::get_post_thumbnail_id(‘post’, ‘secondary-image’, $post->ID); $custom=wp_get_attachment_image_src($custom,’post-secondary-image-thumbnail’); echo $custom[0];

  20. Hi, Thank you for your work :)

    Using this plugin, can I add more than 1 additional Thumbnail image ??

    Thank you.

      • Awesome! But it looks that from the back-office I can only add One secondary image. How can I achieve that ?
        Thank you.

        • Sorry, this is how we can do it :

          // To be Added in functions.php
          // Multi-Thumbnails code
          if (class_exists(‘MultiPostThumbnails’)) {
          for($i = 1; $i ‘Gallery Image’.$i,
          ‘id’ => ‘image-‘.$i,
          ‘post_type’ => ‘post’
          ));
          }
          }

          Thank you.

  21. Great article!

    Just what I’ve been looking for.

    But how I could make it work with a custom post type?

  22. got it, just copy and past this function how many time you want feature images, and change id and label…:)

    • The featured image is an image that you can attach to a post using the featured image box in the post edit area. If you want, you can set a default fallback image for your featured images. This default featured image will appear when there is no featured image set for a post.

      Admin

  23. I have created a plugin for displaying Page Title, Featured Image and the content.

    Instead of displaying featured image, I need to display the secondary image that is uploaded via plugin.

    How to accomplish this? I will share a small part of my plugin. Please go through it.

    function widget($args, $instance) {
    extract( $args );
    $title = apply_filters(‘widget_title’, $instance[‘title’]);
    $page_id = $instance[‘page_id’];
    $featured_image = get_the_post_thumbnail($page_id);
    $image = $instance[$featured_image];
    echo $featured_image;

    ?>

    post_content;
    $content = strip_shortcodes($content);
    $content = apply_filters(‘the_content’, $content);
    echo $this->break_text($content, $page_id);
    ?>

    <!––>
    <!––>

    <?php
    }

  24. I cannot get the resize part to work for me.

    I add image size in functions.php:
    add_image_size(‘small-featured-image-size’, 250, 150);

    I add my image:
    if (class_exists(‘MultiPostThumbnails’)) {
    new MultiPostThumbnails(
    array(
    ‘label’ => ‘Small Featured Image’,
    ‘id’ => ‘smaller-featured-image’,
    ‘post_type’ => ‘product’
    )
    );
    }

    And then:
    if( class_exists(‘MultiPostThumbnails’) ) {
    MultiPostThumbnails::the_post_thumbnail(‘product’, ‘smaller-featured-image’, NULL, ‘small-featured-image-size’);
    }

    The image keeps coming out on the page as its original size. Can anyone help me?

  25. Hey, I’m trying to figure out how to turn this block of code into an array that can be used outside of the loop (in a foreach loop thats after the post loop).

    if (class_exists(‘MultiPostThumbnails’)) :

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’);

    endif;

    How would you do this? Great tutorials by the way!

  26. Thank you for this article as I was looking for a long time, it turns out I found here. We will practice immediately. The tutorial is very clear, good luck!

  27. To improve on this idea, you could just use a custom meta box/fields plugin or create a custom repeatable field… To allow different number of “post thumbnails”

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.