Confused about the_post_thumbnail
-
I’m getting frustrated here. I’ve added add_theme_support( ‘post-thumbnails’ ); in to my functions.php file.. and in my code I’ve implemented <?php the_post_thumbnail(); ?>.. yet nothing happens?
I’m thinking I just dont fully understand this function? I thought it just reads your post and grabs the first image in it and makes it a thumb to put in your the_excerpt? That’s what I’m wanting it to do. I have the_excerpt on my main page and I want to use <?php the_post_thumbnail(); ?> for it to grab a thumb of the image in the post.
Do I need to specify a specific thumbnail image or something? If so, how? why is nothing happening here?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Confused about the_post_thumbnail’ is closed to new replies.