Trying to get post thumbnails working on my theme … err
-
OK, so I am trying to take advantage of the new post thumbnail feature for wordpress 9. I am followed the instructions here:
https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
But am unable to see the thumbnails.
Here is my functions (within php tags of course):
add_theme_support( ‘post-thumbnails’, array( ‘post’ ) ); // Add it for posts
add_theme_support( ‘post-thumbnails’, array( ‘page’ ) ); // Add it for pagesset_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, box resize mode
And here is a link to my index.php template.
As you can see, I have if has_post_thumbnails within the loop and <?php the_post_thumbnail(); ?> within a divider, after the excerpt. The page I am testing it on is: https://www.hospiceinform.net.
Thanks, I would appreciate any help. I just can’t figure out why the thumbnails are not displaying.
- The topic ‘Trying to get post thumbnails working on my theme … err’ is closed to new replies.