News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Web Development Blog:
How-to show popular posts on your WordPress blog?
November 17, 2010 @ 10:37:13

On the Web Development Blog there's a recent post that shows you how to, with a simple bit of code, pull out the most popular posts to your WordPress blog.

Since I'm using WordPress.com Stats, I would like to use the rankings generated by this service or plugin. Searching Google, I found some widget called "WordPress.com Stats: Top Posts Widget" which works out of the box (if like to use a widget). In my case I have a custom sidebar with different custom sections using custom code. The following example explains how-to use that code on your website.

WordPress, by default, doesn't track any statistic information about the posts on your site, so you'll need something like the WordPress Stats plugin to get that part working. Once that's there, you can use his code to pull out the posts from the last few days (configurable) and show the most popular of the list.

0 comments voice your opinion now!
wordpress mostpopular post plugin statistics


blog comments powered by Disqus

Similar Posts

Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations

Job Posting: Hiring Dynamics Seeks LAMP/Web Developer (Irvine, CA)

Job Posting: Doubledot Media Limited Seeks CakePHP Developer (Christchurch, Canterbury, New Zealand)

Job Posting: WiderFunnel Marketing Seeks Web Developer (British Columbia, Canada)

Job Posting: InvestorGuide.com Seeks Web Developer (Fairfax, VA)


Community Events











Don't see your event here?
Let us know!


facebook component performance unittest security database podcast hhvm introduction project package language symfony2 composer framework release example hack install application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework