WordPress.org

Ready to get started?Download WordPress

Plugin Directory

AJAX Hits Counter + Popular Posts Widget

Counts page/posts hits via AJAX. Ideal for nginx whole-page-caching or caching plugins. Popular Posts Widget included.

Counts page/posts hits via AJAX. Ideal for nginx whole-page-caching or caching plugins.

For plugin's work you DON'T need any JS-framework, such as jQuery, MooTools, etc.

Popular Posts Widget included.

You can fully customize displaying of widget by 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}.

Also you can show hits count in Posts/Pages Loop. Simply add this line:

<?php echo(ajax_hits_counter_get_hits(get_the_ID())); ?>

or equivalent

<?= ajax_hits_counter_get_hits(get_the_ID()) ?>

Or you can use shortcode [hits].

Requires: 3.0 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-28
Downloads: 20,868

Ratings

5 stars
5 out of 5 stars

Support

1 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
1 person says it's broken.

100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 50,2,1 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 0,1,0 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 0,1,0 100,2,2 100,2,2 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,3,3
100,1,1
50,2,1