1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Help Needed] Wordpress Featured Image Do Not Show Captions

Discussion in 'Web Design' started by hameem, Feb 26, 2013.

  1. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    Even if I put the caption while selecting/uploading featured images, the caption does not show. However, the images inside the posts show the captions just fine.

    I have searched around but could not find a solution that solved the problem. Any easy work around this?
     
  2. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    anyone?
     
  3. ice41

    ice41 Power Member

    Joined:
    Aug 18, 2012
    Messages:
    783
    Likes Received:
    248
    Occupation:
    Web Designer
    Location:
    Land of Pineapples
    look for the_post_thumbnail() and change it to this one below.
    Code:
    <?php the_post_thumbnail(); echo get_post(get_post_thumbnail_id())->post_excerpt; ?>
    Hope that helps!
     
    • Thanks Thanks x 1