Entry Views WordPress Plugin

entry-views-screenshot-1

A few years ago, I wrote a simple PHP script for counting post views. It was originally created to use alongside one of the themes I was involved in creating.

Unfortunately, I made the mistake of adding it to the Hybrid Core framework. If you follow any of my blog posts on development philosophy, you probably know that I am adamant about keeping this sort of thing out of themes and inside of plugins. We all make mistakes along the way though. Today, I’m happy to announce that I’ve fixed this particular mistake.

Without further ado, I give you the Entry Views plugin.

About the plugin

Entry Views has always been a simple script for counting post views. It just had a simple function (template tag) for outputting the count. Now that it’s in plugin form, I can really beef it up and do a lot more fun stuff with it. For example, this first version of the plugin comes with a widget for listing posts by view count. I also have a few other features in mind for future versions.

By default, the plugin counts views for the following post types:

I’ll also be happy to include post types for any other plugin requested. I just need to know the post type name or the plugin.

Adding support for the plugin should be simple for theme authors. I’m more than willing to help y’all in the forums if you need the help adding it. The Stargazer theme will be getting support in its next update if you want to see an example.

Note that Entry Views will no longer be a part of the Hybrid Core framework in the upcoming 2.0 version. So, any theme authors using it should move over to supporting the plugin instead.

Get the plugin

I hope you enjoy this release and hope to see this integrated into some themes. You can download the plugin from the following pages:

9 Comments


  1. ovidiu

    Funny enough, today I decided to resurrect my age old blog where I was using the original script. Googled and found it on github I think, updated, then found the new plugin.

    Can I simply delete the original script and activate the plugin to seamlessly switch or is there anything else needed?

    I think initially we needed to reference the script somewhere… need to refresh my memory and find the old installation instructions to properly deactivate it.


    1. It was rewritten, so you can’t seamlessly switch. Depending on how you were using it, there could be a few code changes but not many. Just post any parts you need help with on the forums.


  2. Thanks for another great plugin!

    Suggestion for a future feature… it would be great to have the option to set a limit for time, enabling a list of “most read” during the latest xx days.


    1. I was actually thinking of doing a separate plugin/widget for this. Initially, the plugin could output a “most popular” by comment count in last X number of days. But, if coupled with Entry Views, you’d have more options like outputting the most viewed, most commented, or some sort of algorithm to find most popular by view count + comment count.


    2. if what you want is most views in x day/week/month/year/time frame, i don’t think it’s possible in using this plugin. because this plugin do not track/record when the view (count) is added.
      (i don’t think there’s any plugin in wp can do this)

      however it’s possible to create list of most viewed of posts published in x time frame.

      most viewed posts published this week (possible)
      most viewed posts this week (not possibe)


  3. Good idea with the plugin.

    I like the template tag for your plugin which you can use to create a shortcode, hook in using a custom function or add directly to template files.


  4. This is great news. I’ve been using your script for a long time, but I agree to put it as a separated plugin. It will help developing features for themes/websites much easier when I don’t have to care about code for integrating the script and theme.

    Look forward to your new plugins, always interesting!


  5. Simple but nice plugin :) I was actually using the older version and updated to this one today. Works fine!

Comments are closed.