WP 3.3.1, Suffusion 4.0.2
I am trying to figure out how to make my front page display only the most recent post marked sticky. I can’t find how to do this in the documentation.
What I’m trying to do is use a combination of future post publication dates and expirations (via the Atropos plugin) to control what shows up on my front page.
Any suggestions? Is there a plugin that has a shortcode that lets me insert the most recent stick post?
If I’m understanding you correctly, you want to show only the most recent sticky post only on the front page. I had the same issue a month or two ago, and got some fantastic help from the community here at WordPress Answers. The solution is to run two loops in your index.php file. One to pull only the most recent sticky post, and the second to display all other type of posts.
Here’s the link, but I will post my code for this problem as well.
Obviously this code isn’t copy-and-paste for everyone. It worked for me in the code structure I had at the time. Also, forgive the nasty formatting 😛
Thanks so much for this! It was very helpful. One comment: if you want to have the most recent post display as a featured post (i.e., if a post hasn’t been made sticky), and you don’t want to have this post duplicated in the regular list, then in the first loop change:
to:
and in the second loop, change:
to
Bruce