How do I place a thumbnail image on the home page of my blog next to each entry using Wordpress?
I am building a new WordPress Theme and I would like to show a thumbnail image next to the article post on the homepage of my blog. How do I do this? Here is a GIF of what I am describing http://www.onepagereview.com/blog/wp-content/themes/Restaurant%20Review/images/working.gif
Public Comments
- That's clearly a plugin. It might be this one: http://kouloumbris.com/weblog/plugins/image2post/ If not, you might try looking through the wordpress plugins here: http://wp-plugins.net/ Also, if you were to design this yourself because you can't find a suitable plug-in, you'd effectively need to make a plug-in; because somehow, you have to associate the image as the primary photo for the post, and that means adding a custom field, extending the built-in uploads feature, etc.
- This is ONE way you can do it: You don't need a plugin per se. You can alter the wp-config.php file to enable you to upload your images from wordpress to your server. Then after you can choose the thumbnail option directly from your wp create page. Follow these directions to tweak the config file and add this feature (be sure to back up first because messing up this file can cause loss of the blog: The default upload path can be changed by adding a line of code to your wp-config.php file. Just BEFORE the line that says require_once(ABSPATH.'wp-settings.php'); add this line: define('UPLOADS', 'wp-content/myimages'); In the example above, this will result in uploads being placed in your wp-content/myimages/2006/01 folder. Note that 2006 is the current year, and 01 is the current month, in this case January. If the myimages directory does not exist it will be created as long as the parent folder wp-content is writeable.
Powered by Yahoo! Answers