505 posts
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 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
83 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in 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

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
fillerspace says
505 posts
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 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?

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+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
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 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…

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 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
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 more
CraigSnedeker says

I got it. Thanks guys =D

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by