This 2012 is rather busy for me. At least I’m entering it with my laptop overloaded…
A week ago or so, I was asked by a client (happy new year, David!) to code a function to display featured posts in a magazine style in the thesis feature box. Rather simple job, at a first glance. But as the budget was correct (100 USD), I wanted to code something really easy to use for a beginner and a powerful tool for a developper (so that it is easy to adapt it to many other cases). I often see similar requests on DIYthemes forums, so many potential cases where to use such a code.
Here is how it should look out of the box :
The Idea of featured posts plugin
Main idea is to show a set of most important content of your site on the front page. So that the new visitor clearly see where to go by clicking an image (people adore clicky images).
How to accomplish this in thesis theme
Thesis has a box that you can use to add anything you want – Feature box. It is easy to configure it to be displayed on your front page, blog home page or all over your site via the Design settings. The difficulty for a beginner is that to add something to this box you need to use php function added to a hook thesis_hook_feature_box… While adding a function there can be easy even for a beginner, coding such a function could be quite a challenge.
This is what this plugin does.
How featured posts plugin works
The plugin has two parts :
- setting page – where you can configure what content and how it is displayed
- loop – the function itself that displays the featured posts
Why a plugin and not a custom function?
Well, there are plugins and plugins. While some of them are badly coded and eat too much ressources for poor result, the others give you a functionnality you need and a human interface to control what the plugin does and how it does it… without too much jams. But all plugins are actually custom functions. So a badly coded php function stays bad thing for your site even if it is in your theme file and not in the plugin directory.
I coded it as a plugin for two reasons :
- code portability – install it from zip file, activate and you’re good to go
- automated distribution – it is not me personnaly who installs it on your site when it is 4:00 am (last client of mine has 11 hours time gap with me)
Features of the plugin (a teaser of)
- Real human interface to control the plugin functionnality. Yes you may configure pretty much everything you need in the featured post display via click-click way.
- Better image output.
- SEO for image links and titles (there is no
Permalink toorthumbnail forstuff, just post or image titles). - Generates thumbnails either WordPress way or Thesis way (note in thesis way the posts are searched for images if you screwed up
the rightthesis post image settings). - Character level of control over the excerpt lenghts (the length for first post is different from the others).
- Brandable read more links and their CSS classes.
- Possible shortcode integration into a page or post.
- etc…
So if you interested in the similar functionnality to display your featured posts in thesis (or other wordpress theme), stay tuned by filling into the form below.











{ 15 comments }
Would love to have this functionality.. Currently using a 3rd party plugin and i see its really messing up the site and resources using Javascript and CSS.
If you can share the hooks that would be great.
just sent you the zip of the plugin for tests
Really cool.
Thanks for the plugin, its working great, i’m now looking to sort the CSS with it.
Its taking the default menu colors. Need to check on it and will let you know.
Really thanks for sharing the plugin with me.
Glad you like it. You welcome.
It is not the plugin who takes the default menu colors, but thesis who sets the colors for the feature box , you may overwrite it with following css selector :
.custom #feature_box
see example here : http://audioforbooks.com
Thanks for the quick help. I totally forgotten about the design option available for the featured box in Thesis inbuilt.
Will be editing the CSS to match my site.
Thanks for your help.
BTW the plugin is still not commercialized, if you’re interested in publishing the review on http://thesistut.com and pasting your affiliate link, feel free to mail me directly.
Sure, i will mail you when i complete my featured box
Ok, waiting for that!
At-last, i got some time to edit the featured box on my site. Done some small customization to match my site.
.
Would also love to learn how to add the auto slider of post feature
Looks great so far (i you let me tell my opinion, i would push the read more button to the right in the right column and make thumbnails a bit taller)
the slider for that might be Dynamic content gallery and some php code. Drop me a line to the email, so that I send you the php part to integrate it into thesis
cheers,
serge
Salut Serge
I would love to test if I can add this plug/Option to multi-(fake) “Feature box”.
Or is this only working on the standard Thesis “Feature box” ?
There’s a function to call the “Feature box” somewhere else than the standard Thesis interface position.
Maybe I should not use the “Feature box” + DCG on my static front_page.
Pierre
Any update on the auto scrolling/slide show effect for the plugin
I am just changing the design of my blog, and I am looking a way to add a featured post on my blog home post. I would really love to test your plugin on my blog.
Thanks
Hi, I’ll try to send it to you this week.
Hey Serge,
I’d love to give this a try too, and am happy to buy it when it is production ready if it suits my needs
Merci