WordPress Popular Posts

Description

WordPress Popular Posts is a highly customizable widget that displays your most popular posts.

Main Features

  • Multi-widget capable – You can have several widgets of WordPress Popular Posts on your blog, each with its own settings!
  • Time Range – List those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc)!
  • Custom Post-type support – Wanna show other stuff than just posts and pages?
  • Thumbnails! – Display a thumbnail of your posts! (see the FAQ section for technical requirements.)
  • Statistics dashboard – See how your popular posts are doing directly from your admin area.
  • Sorting options – Order your popular list by comments, views (default) or average views per day!
  • Use your own layout! – WPP is flexible enough to let you customize the look and feel of your popular posts! (see customizing WPP’s HTML markup and How to style WordPress Popular Posts for more.)
  • Disqus support – Sort your popular posts by Disqus comments count!
  • WPML support!
  • WordPress Multisite support – Each site on the network can have its own popular posts!

Other Features

  • Shortcode support – Use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the installation section.
  • Template tags – Don’t feel like using widgets? No problem! You can still embed your most popular entries on your theme using the wpp_get_mostpopular() template tag. Additionally, the wpp_get_views() template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the installation section.
  • Localization – Translate WPP to your own language (See the FAQ section for more info).
  • WP-PostRatings support – Show your visitors how your readers are rating your posts!

WordPress Popular Posts is now also on GitHub!

Credits

  • Flame graphic by freevector/Vecteezy.com.

Screenshots

  • Widgets Control Panel.
  • WordPress Popular Posts Widget.
  • WordPress Popular Posts Widget on theme's sidebar.
  • WordPress Popular Posts Stats panel.

Installation

Please make sure your site meets the minimum requirements before proceeding.

Automatic installation

  1. Log in into your WordPress dashboard.
  2. Go to Plugins > Add New.
  3. In the “Search Plugins” field, type in WordPress Popular Posts and hit Enter.
  4. Find the plugin in the search results list and click on the “Install Now” button.

Manual installation

  1. Download the plugin and extract its contents.
  2. Upload the wordpress-popular-posts folder to the /wp-content/plugins/ directory.
  3. Activate the WordPress Popular Posts plugin through the “Plugins” menu in WordPress.

Done! What’s next?

  1. Go to Appearance > Widgets, drag and drop the WordPress Popular Posts widget to your sidebar. Once you’re done configuring it, hit the Save button.
  2. If you have a caching plugin installed on your site, flush its cache now so WPP can start tracking your site.
  3. Go to Appearance > Editor. Under “Templates”, click on header.php and make sure that the <?php wp_head(); ?> tag is present (should be right before the closing </head> tag).
  4. (Optional, but highly recommended for large / high traffic sites) Enabling Data Sampling and/or Caching might be a good idea. Check here for more.

That’s it!

USAGE

WordPress Popular Posts can be used in three different ways:

  1. As a widget: simply drag and drop it into your theme’s sidebar and configure it.
  2. As a template tag: you can place it anywhere on your theme with wpp_get_mostpopular().
  3. Via shortcode, so you can embed it inside a post or a page.

Make sure to stop by the Wiki as well, you’ll find even more info there!

FAQ

The FAQ section has been moved here.

Installation Instructions

Please make sure your site meets the minimum requirements before proceeding.

Automatic installation

  1. Log in into your WordPress dashboard.
  2. Go to Plugins > Add New.
  3. In the “Search Plugins” field, type in WordPress Popular Posts and hit Enter.
  4. Find the plugin in the search results list and click on the “Install Now” button.

Manual installation

  1. Download the plugin and extract its contents.
  2. Upload the wordpress-popular-posts folder to the /wp-content/plugins/ directory.
  3. Activate the WordPress Popular Posts plugin through the “Plugins” menu in WordPress.

Done! What’s next?

  1. Go to Appearance > Widgets, drag and drop the WordPress Popular Posts widget to your sidebar. Once you’re done configuring it, hit the Save button.
  2. If you have a caching plugin installed on your site, flush its cache now so WPP can start tracking your site.
  3. Go to Appearance > Editor. Under “Templates”, click on header.php and make sure that the <?php wp_head(); ?> tag is present (should be right before the closing </head> tag).
  4. (Optional, but highly recommended for large / high traffic sites) Enabling Data Sampling and/or Caching might be a good idea. Check here for more.

That’s it!

USAGE

WordPress Popular Posts can be used in three different ways:

  1. As a widget: simply drag and drop it into your theme’s sidebar and configure it.
  2. As a template tag: you can place it anywhere on your theme with wpp_get_mostpopular().
  3. Via shortcode, so you can embed it inside a post or a page.

Make sure to stop by the Wiki as well, you’ll find even more info there!

Reviews

Excellent!

This is my favorite / most used plugin. I like to monitor the number of views my various blog articles are getting. Over the years, I’ve had a couple of glitches happen. But, Hector (the developer) has always been very responsive and helpful.

I just did my very first donation for a plug-in (perhaps I should be embarrased?). But, I feel this one is worthy of a donation. And, I’m sure Hector, who is in Venezuela, could use it. For him to be doing this under the conditions in Venezuela is remarkable. Buena suerte y que Dios te bendiga (y Venezuela tambien).

getting error while pageview updation

gitting this error in browser console

<div id=”error”><p class=”wpdberror”>WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%4$d, last_viewed = '%3$s'' at line 3]<br />`INSERT INTO wp_popularpostsdata
(postid, day, last_viewed, pageviews) VALUES (146, ‘2017-09-20 12:49:31’, ‘2017-09-20 12:49:31’, 1)
ON DUPLICATE KEY UPDATE pageviews = pageviews + %4$d, last_viewed = ‘%3$s’;</p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%2$d, last_viewed = '%4$s'' at line 3]<br />INSERT INTO wp_popularpostssummary
(postid, pageviews, view_date, last_viewed) VALUES (146, 1, ‘2017-09-20’, ‘2017-09-20 12:49:31’)
ON DUPLICATE KEY UPDATE pageviews = pageviews + %2$d, last_viewed = ‘%4$s’;`</p></div>WPP: Oops, could not update the views count!

Useful plugin

After 2 month of usage i can say that it is useful plugin to display the popular posts. i can give my rating as 5 stars.

Read all 156 reviews

Contributors & Developers

“WordPress Popular Posts” is open source software. The following people have contributed to this plugin.

Contributors

“WordPress Popular Posts” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “WordPress Popular Posts” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

4.0.3

This is a hotfix release.

  • Dashboard: escapes post titles to prevent potential XSS (props Delta!)
  • Restores ability to use a custom default thumbnail.

4.0.2

This is a hotfix release.

  • Dashboard: fixes thumbnail picker on HTTPS.
  • Adds the wpp_custom_html filter back.

4.0.1

This is a hotfix release.

  • Fixes a warning message triggered on old PHP versions.
  • Fixes undefined default_thumbnail_sizes warning message.
  • Removes a hardcoded table prefix causing issues on sites that uses a different prefix than the stock one.

4.0.0

If you’re using a caching plugin, flushing its cache after installing / upgrading to this version is highly recommended.

  • Plugin code refactored!
  • Dashboard section redesigned (now mobile-friendly, too!)
  • New Statistics chart and other goodies.
  • Adds ability to pick a Custom Time Range!
  • Adds ability to filter posts by other taxonomies than just categories!
  • Adds Relative Date Format.
  • Fixes error caused by changeset 41508 https://core.trac.wordpress.org/changeset/41508 (props hykw!)
  • Improves PHP7+ compatibility.
  • Improves compatibility with WP-SpamShield, WooCommerce, Polylang and WPML.
  • Drops qTranslate support (that plugin has been long removed from WordPress.org anyways.)
  • New content tags added: {img_url}, {taxonomy}.
  • New filters: wpp_post_class, wpp_post_exclude_terms.
  • French and German translation files became too outdated and so support has been dropped for now (want to help? Contact me!)
  • Tons of minor bug fixes and improvements.

Also, see Release notes.

3.3.4

  • Attempt to convert tables to InnoDB during upgrade if other engine is being used.
  • Adds a check to prevent the upgrade process from running too many times.
  • Minor improvements and bug fixes.
  • Documentation updated.

3.3.3

  • Fixes potential XSS exploit in WPP’s admin dashboard.
  • Adds filter to set which post types should be tracked by WPP (details).
  • Adds ability to select first attached image as thumbnail source (thanks, @serglopatin!)

3.3.2

  • Fixes warning message: ‘stream does not support seeking in…’
  • Removes excerpt HTML encoding.
  • Passes widget ID to the instance variable for customization.
  • Adds CSS class current.
  • Documentation cleanup.
  • Other minor bug fixes / improvements.

3.3.1

  • Fixes undefined index notice.
  • Makes sure legacy tables are deleted on plugin upgrade.

3.3.0

  • Adds the ability to limit the amount of data logged by WPP (see Settings > WordPress Popular Posts > Tools for more).
  • Adds Polylang support (thanks, @Chouby!)
  • Removes post data from DB on deletion.
  • Fixes whitespaces from post_type argument (thanks, @getdave!)
  • WPP now handles SSL detection for images.
  • Removes legacy datacache and datacache_backup tables.
  • Adds Settings page advertisement support.
  • FAQ section has been moved over to Github.

See full changelog.