WordPress 2.9 Changes to Post Thumbnails
December 11th, 2009Tags: thumbnails, wordpress 2.9
Categories: General, Internet, WordPress
The world of WordPress Development is constantly changing. As well it should. No surprise there. Several days ago, I posted an article how to add the post thumbnail feature on your themes for the upcoming WordPress 2.9, which is currently in Beta.
Previously, the code for themes was:
<?php the_post_image( ‘post-thumbnail’ ); ?>.
It has changed to:
<?php the_post_thumbnail( ‘post-thumbnail’ ); ?>.
The entry in functions.php is still the same. This code activates post thumbnails feature. In case you’ve forgotten, it’s:
if ( function_exists( ‘add_theme_support’ ) )
add_theme_support( ‘post-thumbnails’ );
Lastly, Technosailor talks about the changes for WordPress 2.9. Great read.