pinksy
Search Pinksy
Lijit Search
Comment Chart
Chris (116)
Barnze (60)
Skytower (56)
Lisa (49)
MJBDiver (48)
Erika (43)
Calendar
July 2008
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  
Subscribe

Add to Google
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online

Add to My AOL
Add to Technorati Favorites!
Add to netvibes

del.icio.us
Hit Counter

Thingies
Add to Technorati Favorites
Wordpress Archive
28th January 2007 11:08pm

Here’s how to code your own “Most commented” widget for your self-hosted Wordpress site, without the need for a single plugin. See my left sidebar for an example (”Popular Posts”).

First, find the .php files that are part of your template. They are normally in wp-content\themes\<your theme>, whatever <your theme> might be. You’ll probably want to put the widget in your sidebar, so a lot of themes probably have a sidebar.php file. Open it up in your preferred text editor.

I’ll explain the MySQL query first. Then I’ll add a bit of PHP around it, and wrap it all together at the end.

(more…)

File under: Internet, Wordpress
AddThis Social Bookmark Button
Since July 2006
498 posts
992 comments
Pinksy RSS Feed
Discover the feeds I read. Follow me on http://www.toluu.com to see!
doctor who series 4
Adverts
spacer
www.flickr.com
This is a Flickr badge showing recent public photos from Flickr. Make your own badge here.
Firefox 2
Link to Outpost Gallifrey
RichardDawkins.net
Hello
Just an experiment...
Your IP address
38.103.63.16
Your browser
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Your language
en-us,en;q=0.5