Complex code for most recent posts
-
Trying to do something I’ve never done before.
In the header of my theme, I want to show some content, including the title and some custom fields, of the most recent post and then a
<ul>of the six most recent posts with an offset so the most recent isn’t included in that list.So, structurally, it should be something like this:
<div class="header"> <h1>Most Recent Post Title</h1> <p>Custom field from most recent post</p> </div> <div class="nav"> <ul> <li><a href="#">2nd most recent post title</a></li> <li><a href="#">3rd most recent post title</a></li> <li><a href="#">4th most recent post title</a></li> <li><a href="#">5th most recent post title</a></li> <li><a href="#">6th most recent post title</a></li> <li><a href="#">7th most recent post title</a></li> </ul>The problem I’m having is I’m not sure how to combine these two requirements into the correct WordPress code.
Can anyone lend a hand?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Complex code for most recent posts’ is closed to new replies.