This plugin adds a widget to your WordPress site that gives your visitors an ability to filter all your posts by a category or/and tag.
If it didn't work, try this:
cat-tag-filterfolder to the
If your theme doesn't support widgets, you can use this code:
<?php the_widget('cat_tag_filter', $instance, $args); ?>
Here is a full list of default $instance arguments:
'title' => 'Filter' 'button_title' => 'Show posts' 'cat_list_label' => 'Show posts from:' 'tag_list_label' => 'With tag:' 'all_cats_text' => 'Any category' 'all_tags_text' => 'Any tag' 'cats_count' => 1 'tags_count' => 0 'tag_logic' => 1 // 1 for AND and 0 for OR logic operator 'tag_type' => 1 // 1 for checkboxes and 0 for dropdown 'clude_tags' => 'exclude' //can be 'include' or 'exclude' 'exclude_tags' => '' //used for including tags also, if clude_tags is set to 'include' 'clude_cats' => 'exclude' //can be 'include' or 'exclude' 'exclude_cats' => '' //used for including categories also, if clude_cats is set to 'include' 'tag_tax' => 'post_tag', 'category_tax' => 'category'
If you want to override some settings, for example get rid of title and turn on the counter for tag list use this code:
<?php the_widget('cat_tag_filter','title=&tags_count=1'); ?>
If you want to get rid of div's that WordPress creates before and after all the widgets, use this code:
<?php the_widget('cat_tag_filter','title=','before_widget=&after_widget='); ?>
You can also override
after_title the same way.
Requires: 2.8 or higher
Compatible up to: 3.4.2
Last Updated: 3 years ago
Active Installs: 1,000+
Got something to say? Need help?