• Hi everyone!
    I added a thumbnail to my posts by the panel in the creating post area.
    Unfortunately when I add the line <?php the_post_thumbnail(); ?> it shows me nothing, like I choose no picture for my post.

    Should I add some more lines to make it work?

Viewing 4 replies - 1 through 4 (of 4 total)
  • where are you adding that code? In the post? Or in the template?

    Thread Starter Alessandro Di Ruscio

    (@thirdeyeblind82)

    I added that code inside index.php, inside the loop.
    So for every post I show the_title() the_permalink(); and the_post_thumbnail();.

    Just the last one shows me a blank space!

    that is odd… what code does your theme use to register post thumbnails? (in functions.php)

    Also, when you view your source code from the browser, can you see anything output by the_post_thumbnail?

    Thread Starter Alessandro Di Ruscio

    (@thirdeyeblind82)

    Ok, I got it what was the problem!!

    When I was choosing the thumbnail in the panel, I don’t have to click on “Insert in the article” but instead on “use it as thumbnail”!
    I was doing this mistake!

    Sorry!! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post thumbnails’ is closed to new replies.