Wordpress loop is confusing the shit out of me

Status
Not open for further replies.

cpd

New member
Nov 1, 2006
61
0
0
I know there's got to be an easy solution I'm overlooking to this...

The Wordpress template I'm using has a "Featured" post at the top, and then another section for all the other posts that is ordered chronologically.

You get a post in the "Featured" section by assigning it to the category "Featured."

What I want to do is make the latest post show up in that category, and then all the others show up in the subsection. Should be simple, but I can't figure out how to make the subsection show everything BUT the latest post.

Any thoughts?
 


set a variable outside of the loop to 1, have an if else condition in the loop that checks the variable, if one - post in "featured" section, if zero post in subsection. obviously decrement the variable in at least the if section. don't know how efficient that is, but it's what I would do.
 
Got it figured out, I just had to change "category=featured" to "showposts=1" in the featured section and it worked perfect. The second loop doesn't pick up the new post as it's already been taken by the first loop.
 
Status
Not open for further replies.