=== AJAX Hits Counter + Popular Posts Widget === Contributors: kutsy Tags: hits, views, count, ajax, nginx, cache, popular, performance, widget Requires at least: 3.0 Tested up to: 5.7 Stable tag: 0.10.210305 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Plugin counts posts views (hits) by using external AJAX based counter script of this plugin, which is best solution for caching whole page or using other cache plugins. Plugin also include widget "Popular Posts" for displaying popular posts (based on hits count) with different visibility settings and using predefined placeholders, such as `{post_id}`, `{post_title}`, `{post_title_N}`, `{post_excerpt_N}`, `{post_author}`, `{post_author_link}`, `{permalink}`, `{post_date}`, `{thumbnail-[medium|...|64x64]}`, `{post_categories}`, `{post_hits}` and `{post_comments_count}`. == Description == Plugin counts posts views (hits) by using external AJAX based counter script of this plugin, which is best solution for caching whole page or using other cache plugins. Plugin also include widget "Popular Posts" for displaying popular posts (based on hits count) with different visibility settings and using predefined placeholders, such as `{post_id}`, `{post_title}`, `{post_title_N}`, `{post_excerpt_N}`, `{post_author}`, `{post_author_link}`, `{permalink}`, `{post_date}`, `{thumbnail-[medium|...|64x64]}`, `{post_categories}`, `{post_hits}` and `{post_comments_count}`. You can show hits count in Posts/Pages Loop simply adding this line: `` or equivalent `= ajax_hits_counter_get_hits(get_the_ID()) ?>` Or you can use this shortcode: `[hits]`. Plugin also have JavaScript-callback function (on client) for "success" (`ajaxHitsCounterSuccessCallback(xhr)`) and for "failed" (`ajaxHitsCounterFailedCallback(xhr)`) result status of hits incrementation. = Features = * AJAX based counter ignores most bots/crawlers * Ability to reset the counter to any number any time * Plugin not require using any third party code and/or JavaScript-frameworks * Sortable admin column * Can be shown anywhere on the site using "Popular Posts Widget", shortcode `[hits]`, php-code `= ajax_hits_counter_get_hits(get_the_ID()) ?>` * Data import from WP-PostViews ("Tools"->"Import") * W3 Cache/WP SuperCache compatible * Excluding counts from administrators == Installation == From your WordPress dashboard: 1. Open "Plugins" > "Add New" page 2. Search for 'AJAX Hits Counter' 3. Activate 'AJAX Hits Counter + Popular Posts Widget' from your Plugins page. Now widget counts hits automatically. 4. Optional. You can enable "Popular Posts Widget" in Widgets Management. From WordPress.org: 1. Download 'AJAX Hits Counter + Popular Posts Widget' from [plugin's page](https://wordpress.org/plugins/ajax-hits-counter/) 2. Upload archive from "Add Plugins" page or you can upload directory `ajax-hits-counter` to your `/wp-content/plugins/` directory 3. Activate 'AJAX Hits Counter + Popular Posts Widget' from your "Plugins" page. Now widget counts hits automatically. 4. Optional. You can enable "Popular Posts Widget" in Widgets Management. == Screenshots == 1. Popular Posts Widget 1. Edit Hits Count in Admin Dashboard 1. Column with hits count in Admin Dashboard 1. AJAX Hits Counter General Settings == Changelog == = 0.10.210305 [2021-03-05] = * Updated for support Wordpress 5.7 * Updated screenshots = 0.9.10 [2018-03-09] = * Response of increment hits now in JSON format * You can use callback function for "success" (`ajaxHitsCounterSuccessCallback(xhr)`) or "failed" (`ajaxHitsCounterFailedCallback(xhr)`) result status of increment hits script = 0.9.9 [2014-12-19] = * Added option in Settings: "Don't count hits of admin users". Currently it works only with normal (not "rapid") counting script. Thanks for the idea to [vvvv](https://wordpress.org/support/profile/vvvv). * Updated screenshots with Wordpress 4.1 = 0.9.8 [2014-12-18] = * Added possibility to set Hits Count format from predefined. Thanks for the idea to [emik91](https://wordpress.org/support/profile/emik91), [Dre_MPMG](https://wordpress.org/support/profile/dre_mpmg), [Pulseframe](https://wordpress.org/support/profile/pulseframe). * Added possibility to exclude Posts/Pages by their IDs. Thanks for the idea to [pFrog](https://wordpress.org/support/profile/pfrog). = 0.9.7 [2013-12-28] = * Bug fixes and visual fixes for Wordpress 3.8 = 0.9.6 [2013-11-29] = * Added translation in serbo-croatian (`sr_RS`) language. Thanks to [Borisa Djuraskovic](http://webhostinghub.com). = 0.9.5 [2013-11-29] = * Replace `filter_var()` for PHP < 5.2.0 support. = 0.9.4 [2013-11-18] = * Added translation in spanish (`es_ES`) language. Thanks to [Maria Ramos](http://webhostinghub.com). = 0.9.3 [2013-11-14] = * Added translations in russian (`ru_RU`) and ukrainian (`uk_UA`) languages. = 0.9.2 [2013-10-22] = * Bug fixes = 0.9.1 [2013-10-22] = * Added shortcode `[hits]` (or `[hits id=12345]`). Thanks for the idea to [AsankaD](http://wordpress.org/support/profile/asankad). * Small bugs fixes = 0.9.0 [2013-10-22] = * Added very fast (rapid) alternative hits counter script that used WP constant `SHORTINIT`. You can choose script type via Settings checkbox in admin area. * Changed design of Popular Posts Widget = 0.8.8 [2013-09-15] = * Added classes for `