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 8374131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:51:08+00:00 2026-06-09T14:51:08+00:00

So I set up my wordpress theme to allow users to upload featured images,

  • 0

So I set up my wordpress theme to allow users to upload featured images, and Im building my index page to display selected pages’ featured images but would also like to display the description of the image.

The thing is, Im not using the loop, Im pulling the page IDs using wordpress’s settings API as options.

So displaying the featured images is done like this:

<?php $bucket_options = get_option('frontpage_display_options'); ?>
<?php $page_one = $bucket_options['frontpage_bucket_one']; ?>
<?php $page_one = get_post($page_one);  ?>
<?php if (has_post_thumbnail($page_one->ID)) : ?>  
      <?php echo get_the_post_thumbnail($page_one->ID, 'bucket'); ?>  
<?php endif; ?>

I keep reading that this will work:

echo get_post(get_the_post_thumbnail_id($page_one->ID))->post_content;

or this:

echo get_post(get_the_post_thumbnail($page_one->ID))->post_content;

But neither of them displays anything

  • 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-06-09T14:51:09+00:00Added an answer on June 9, 2026 at 2:51 pm

    That capability is awaiting a new release: http://core.trac.wordpress.org/ticket/12235

    But a solution that is floating around is to create a function in functions.php:

    function the_post_thumbnail_caption() {
      global $post;
    
      $thumbnail_id    = get_post_thumbnail_id($post->ID);
      $thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment'));
    
      if ($thumbnail_image && isset($thumbnail_image[0])) {
        echo '<span>'.$thumbnail_image[0]->post_excerpt.'</span>';
      }
    }
    

    And then call the_post_thumbnail_caption();

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

Sidebar

Related Questions

Users on my site upload images that are less than my WordPress theme's essential
I set my wordpress permalink structure to /%postname%/ but now when I go to
in wordpress , i set a variable in header.php <?php $var= 'anything' ?> but
I am trying to set up a page on a wordpress site that displays
In Wordpress MU, how can I allow users to register for new blogs with
I'm trying to modify my wordpress theme (inove) to display all comments in the
I am using wordpress twentyten theme. and in this i have set search widget.
I'm developing a wordpress theme locally and I'm trying to set a base URL
I've developed a wordpress theme on my local machine using apache, when I upload
i am building a wordpress site, twenty eleven theme. I want a widget area

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.