Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm running a site for a nonprofit using Wordpress as a CMS. Our theme is a child theme built on top of Twenty Ten.

I'm looking for a plugin or code sample that would allow me to add a "featured content" block to the home page to highlight a current event or partnership. I'm thinking this could be a custom post type. I could code it from scratch, but I'd rather find a plugin that could just be dropped in to get this live as quickly as possible.

My goal is the featured content would have an expiration date where once reached, the content would stop being displayed automatically. A bonus feature would be to prioritize the order of the "live" features being displayed.

share|improve this question
Please read the faq, plugin recommendations are not a valid format fit for this site for good reason. Please reformulate your question accordingly –  Tom J Nowell Mar 4 '13 at 0:31
add comment

1 Answer

I'll direct you to this question I answered a few months back that sounds about the same as what you are looking for but is meant specifically for the use of the 'sticky posts' feature. Otherwise what you could do is dedicate a "Featured" category to this task and create a custom loop at the top of your blog template (most likely index.php). You would end up with something like this at the beginning:

// conditional tag to test if it is the FIRST blog page
if (is_home()) :
    // code to display only the single most recent post in the featured category
endif; ?>

Keep in mind that this is not tested (the code in the other post works in a production setup perfectly fine), but I'm just writing this on my break :) Let me know if it works or doesn't, as we're all here to help!

share|improve this answer
Not exactly what I was looking for, but your answer was enough to get the wheels turning. Thanks for putting that out here. –  cpilko May 29 '12 at 20:23
No problem my man, glad it was at least somewhat useful. If you stumble across a plugin that allows you to create a banner-like featured section as well as create expirations on events, let us know! Alternatively, if you have trouble finding an all-in-one plugin, you could use one of my ideas and then implement this plugin: wordpress.org/extend/plugins/post-expirator It's a workaround, but an adequate one. –  cmegown May 29 '12 at 20:28
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.