Testing Featured Article Function for WordPress
By Michael Pollock in WordPress
I’ve been looking for a WordPress plugin or hack that’ll allow me to create a featured post on the main page of SavvySolo. So far, the best I’ve been able to track down is RedAlt’s Adhesive plugin. The plugin adds a “Sticky” checkbox in your WP admin panel, and you simply check the box is you want a certain post to show up at the top of your page. You can then style the post however you like in your CSS file.
Update 1: Tried it. Didn’t work right. the styling for the sticky post carried through on the entire index page. Back to the drawing board.
Update 2: I managed to track down a pretty decent hack rather than a plugin. It comes from deepthought over at MaxPower. It’s a bit more involved to implement compared to most of the wonderful WP plugins, but it seems to be doing the trick for me. You’ll have to go into your index template and add some code where you want the featured article to show up. Deepthought spells it out pretty well. Then you’ll need to go into your CSS and style it to your liking. The only thing I haven’t been able to figure out yet is how to designate a particular article as “feature.” So far, it looks like this hack just uses your most recent post as the Featured Article. Still researching.
Update 3: Okay. Got it figured out. The way it works is you create a separate category for your featured articles. For example, I created a category called “Featured.” You then insert that category name into the code provided by the hack. You can also set it up to offer multiple featured articles, but I’m just using one for SavvySolo. It’s pretty simple really. If you need any help, give me a shout. Big thanks to deepthought too.



On Feb 12, 2006, David Gammel said:
You should be able to do this by using a custom field to indicate a feature and a bit of PHP hackery in your templates to display it.
On Feb 17, 2006, Amos said:
Sites lookin’ great Michael… Might not be what you want. I’m a coding tard but I know the folks over at No One’s Listening have a Featured Post plugin. You can look it over here.
On Nov 13, 2006, fuad said:
did anyone write a tutorial on how to crack the theme file to show image to the 1st post (adhesive)