Build a custom plugin to track the popularity of WordPress posts and then create a widget to display the top five.
- [Voiceover] Hi, I'm Morten Rand-Hendriksen, staff author at Lynda.com, and I'm delighted to welcome you to WordPress Developer Tips: Creating a Popular Posts Plugin. In this short developer tip, I'll show you how you can build your own custom plugin to track the popularity of posts based on post views. And I'll show you how to create a widget to display a list of the most popular posts on the frontend of any WordPress site. In the first section of the course, we'll build a basic plugin and create the functions necessary to count post views with a custom field.
And in the second section, I'll show you how to build your own custom widget that displays the five most popular posts which can be placed anywhere in any widgetized area on any WordPress site. Tracking and displaying the most-viewed and most popular posts on a WordPress site can provide value to both the site-owner and the visitors. And I'm here to show you how to do it right. So let's get cracking with WordPress Developer Tips: Creating a Popular Posts Plugin.