WordPress Read/Hit Counter Plugin Update (v1.1)

As some of users of my plugin, wordpress read counter, requested me to release an update so that they can show hit counter along with post. Few days ago, I have made the necessary update but I forgot to release it.

Click here to download

The installation steps are available in the previous post. I am just showing how to show the counter with post.

For showing the counter you need to edit the template file. You need to put the following line anywhere in the theme/template to show the counter.

< ?php if(function_exists(‘rc_showread’)) echo rc_showread();?>

Showing counter on homepage:
Go to theme editor. Click on index.php file and open it. Put the above line where you want to show it.
here is the excerpts after applying this in wordpress default theme:
——————
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to < ?php the_title_attribute(); ?>”>< ?php the_title(); ?></a></h2>
<small>< ?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –> < ?php if(function_exists(‘rc_showread’)) echo rc_showread(); ?></small>
</div>

——————-

Showing counter on post details (single post):
Go to theme editor. Click on single.php file and open it. Put the above line where you want to show it.
here is the excerpts after applying this in wordpress default theme:
——————-
< ?php } edit_post_link(‘Edit this entry’,”,’.’); ?>
< ?php if(function_exists(‘rc_showread’)) echo rc_showread(); ?>
——————-

Don’t forget to clear caches if you use any caching in your blog to see the effect.