Giving each WordPress post a thumbnail, and display the thumbnail on the home page: Interesting tutorial on creating thumbnails for each post on your blog and using Custom Fields to add and display them on your front page. A word of warning: the process is hand crafted and labor intensive. Think of them as SnapShots for your WordPress posts, hosted on your own blog. I think this could be a very cool plugin that automagically builds thumbnails for your posts and stores them on your blog. Then a custom function that behaves like “recent posts” could display thumbnails of your posts on the front page. I see this feature being really useful for those who post a lot of multimedia such as videos and pictures. Thanks HackWordPress
[EDIT] Also, check out another Custom Fields thumbnail tutorial.
Over at my site, I use the Post Thumbs-plugin, which does the same thing, basically (providing that there’s an image in your post). Check it out.
I’d worked on a similar plugin that i’m gonna release soon. Essentially it looks for a category(assuming posts have single categories) and gives a corresponding thumbnail.
Great for easily adding a bit of eyecandy.
Precisely what I’ve been looking for all across the board. I was going to just figure it out myself, but sometimes I think there’s a tutorial for everything to do with WordPress. ๐
Thanks!
That’s nifty. I’ll have to check it out.
Whenever I wanted to do thumbnails for posts, I just placed an image within the loop that had a filename of the post-id, which would look like:
<img src=”http://scarform.com/i/<?php the_ID(); ?>.jpg” align=”left” border=”0″ />
Then, the only thing you have to do is worry about making the image and uploading it – and not worrying about things like custom fields. Fairly simple.
Post IDs are found under Manage > ID (it’s the very first column.) So if you wanted to make a thumbnail for post 255, you name the image 255.jpg.
Simple, right?
Hi – I’m glad you found my post useful!
Matt – that’s a pretty smart workaround for posting thumbnails, but I think there’s one drawback (correct me if I’m wrong): a post only gets an ID number once it’s been published. This means you have to write the post, publish it, and then go back and create an image with the ID number in it. So you have to publish, and then edit, no?
Hi Mark,
Thanks for mentioning Hack WordPress!
There are definitely quite a few ways to do this. One of my favorite sites to see this in action is CyberNet News.
You wouldn’t have to edit the post, just view what post ID it is. And if you just do nothing but posts, then it goes in order. If your last post was ID299 and you haven’t published anything since, your next post will be ID300. It’s fairly simple, one line of code, and doesn’t involve custom fields (the need to add one for every post), so I figured it’d be a little easier than having to edit something every time you post (it also gives it an ID when you save and continue editing).
Ha! That’s funny, I just had this idea a week ago to use the Custom Fields to add post thumbnails. I took it a step further by utilizing pictures posted to flickr using their 75×75 size and also using the Custom Fields to display picture credits. See it on my site at bui4ever.com
Good article and good design, but I believe I handled the same things without needing to do any special changes to the code. I wrote a script that feeds directly off of the RSS feed and dynamically creates thumbnails for the posts directly from the images are already part of the article.
No need for any thumbnail image directory… change the image in a post and the home-page simply changes to match it.
Take a look at my site miteyo.org.
This is very cool but it would be cooler if it was a plugin, as you suggest.
thanks this is what i was searching for my blog ๐
I just wrote a tutorial on this last month ( Adding images to posts). No link love for me? ๐
In all seriousness though, this can be a really powerful feature because you can pull these thumbnails out anywhere in your blog. They don’t have to be used along with just the post.
Im a satisfied user of the Yet Another Photo Blog plugin. Handles post images and thumbnails nicely, even allowing simple integration without any theme updates. See http://johannes.jarolim.com/bl.....photoblog/ for all the details.
One year ago I wrote it, it’s a plugin for do it.
http://www.anieto2k.com/plugin.....e-tu-blog/
all this is already supported by the Post Thumb plugin, which does a great job creating thumbs for posts that enable a wide spectrum of usages.