Support » Fixing WordPress » show description of image

  • Resolved Raider000

    (@raider000)


    Hi

    I am using the_post_thumbnail() for my custom post type to make appear my uploaded images. Is there a way I could also get the description of the image?

    [Bump deleted per the forum rules.]

Viewing 1 replies (of 1 total)
  • Thread Starter Raider000

    (@raider000)

    I solved this problem now.

    For people who have the same problem:

    <?php
    		the_post_thumbnail();
    		echo get_post(get_post_thumbnail_id())->post_content;
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘show description of image’ is closed to new replies.