505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Weekly Top Seller
+5 more
CraigSnedeker
says

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

faevilangel_designs
faevilangel_designs Recent Posts Threads Started
87 posts
  • 5 Years of Membership
  • Exclusive Author
  • United Kingdom
faevilangel_designs
says

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

1149 posts
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
  • Collector Level 2
+3 more
fillerspace
says
505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Weekly Top Seller
+5 more
CraigSnedeker
says

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?

1149 posts
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
  • Collector Level 2
+3 more
fillerspace
says

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.

505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Weekly Top Seller
+5 more
CraigSnedeker
says

I’m sorry, what’s a counter and how do I use it?

I’ll google it and post if I found anything…

743 posts
  • Elite Author
  • Weekly Top Seller
  • Featured Item
  • Most Wanted Winner
+5 more
Orbital_Themes
says

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…

505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Weekly Top Seller
+5 more
CraigSnedeker
says

I got it. Thanks guys =D

by
by
by
by
by
by