WordPress Category Widgets plugin – display different widgets for different categories

Today, I have developed another plugin for WordPress which I named ‘Category Widgets’ plugin and as usual nothing more peaceful rather than sharing with the community.

Using this plugin, you can display a text widget for any specific category and/or its sub-categories. For example, you want to show different sidebar banners based on different category. It is easy using this plugin. Just create a new widget and select the category.

I have found another plugin for almost the same purpose. That plugin lacks of capability of displaying in the subcategories. That mean it does not work for the sub-categories of the selected category. In this plugin, I have made that feature and also optionally you can disable that feature too.

Requirements:

  1. WordPress 2.8+

Download:

Continue reading →

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.