So I am making a new site, SemiProApps (Free app/software blog) and I want the newest post to be a big banner and the rest to be smaller thumbnails (just on home). And on the category pages I want them to be even smaller.
How do I do that?
And can I make it so it resizes/crops the image so I only have to use 1 image instead of three?
Thanks
i’m sure there is an option on image sizes in the wp-settings part of the admin menu
also you can specify it, via css & php code.
Look on net tuts for a wordpress featured post code
Ok great but how do I make the newest post big, the 5 next posts medium, and all the other posts on the site (including the categories page) small thumbnails?
Maybe in The Loop, you can add a counter starting at 1. When the counter is 1, use the code for the big image. When the counter is between 2 and 6, use the code for the medium image. Default to using the code for the small image and everywhere else, don’t initialize the counter.
I’m sorry, what’s a counter and how do I use it?
I’ll google it and post if I found anything…
Just declare the PHP variable which equals 1. Make an if statement at the beginning of loop, and check if the variable equals 1, if yes – place the code for the big post. At the end of each loop add +1 to the variable. Then check if your variable is between 2 and 6, if so – use the code for smaller posts… And so on…
I got it. Thanks guys =D
