Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 985475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:10:12+00:00 2026-05-16T05:10:12+00:00

I am using wordpress and am using featured images(they used to be called post

  • 0

I am using wordpress and am using featured images(they used to be called post thumbnails). I wanted to use multiple featured images, so I chose to use the Multiple Post Thumbnails Plugin.

I can get the Secondary Image Upload box to show up in the admin area, but I can’t manage to get the image to display on the page.

This is the code I am using to try and make it display (From: http://wordpress.org/extend/plugins/multiple-post-thumbnails/installation/):

<?php if (class_exists('MultiPostThumbnails')
    && MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) :
        MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image'); endif; ?>

I tried adding a random echo inside the if statement to see if it gets hit, but it doesn’t echo out, so i’m guessing somehow the condition is not being met?

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:10:13+00:00Added an answer on May 16, 2026 at 5:10 am

    First of all, I guess it is necessary to enable thumbnails, too:

    // This theme uses post thumbnails
    add_theme_support( 'post-thumbnails' );
    

    Then you have to add something like

    if (class_exists('MultiPostThumbnails')) {
        $types = array('post', 'page', 'my_post_type');
        foreach($types as $type) {
            $thumb = new MultiPostThumbnails(array(
                'label' => 'Secondary Image',
                'id' => 'secondary-image',
                'post_type' => $type
                )
            );
        }
    }
    

    in your themes functions.php file within the theme_setup() {...} function.

    HTH, mtness.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my WordPress site, I'm using a plugin called Vera Meta Boxes that lets
You can enable featured images for posts and set their size by using the
I am using wordpress as my cms and building a website. I use Graphene
I'm using wordpress with Smooth Gallery for showing featured news slider, and i want
My WordPress plugin has a table with a AUTO_INCREMENT primary key field called ID.
So I set up my wordpress theme to allow users to upload featured images,
I am trying to load images through custom fields, rather than using the featured
I am using the toolbox theme for wordpress. This is the code used to
I'm having hard time trying to use teasers post in my wordpress theme (based
I'm trying to call multiple JQuery scripts using (a wordpress feature) wp_enqueue_script. The call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.