Advanced tag search

Views: 1887 Last modified: August 04th, 2011 Comments: 1

Since tags are more and more used for all kind purposes, i thought it would be very useful if we could search the post tags, just like a “normal” search page, only now we are using tags.

At first i wrote this plugin for my own use, but i thought other WP users would like it as well, so here it is.

How to use ?
Install the plugin as you used to. After the install process, add a new page and add the following shortcode [ tagsarchive ] (without the spaces), followed by a hit on the publish button, and you are ready to go.

For now it has the following options:

  • search a tag which looks like your input (LIKE % $input %)
  • search a tag which is exactly your input
  • show/hide how many times it is used for posts
  • order by times used or tag name
  • sort ascending/descending

The following CSS classes and divisions are added to this plugin so you are able to customize the look in your own stylesheet.
In case of future update’s, no styles are overwritten.

CSS classes and divisions

  • form#form-search-tags
  • span.error
  • form#form-search-tags legend
  • form#form-search-tags fieldset
  • span.headings
  • form#form-search-tags h3

There is no admin page since it would be useless.

Upgrades for the next releases:

  • search category specified
  • search on times used

Version 1.1

  • Fixed: error message added if both fields (tagname like and tagname is) are empty.

Version 1.2

  • Fixed: shows no tags anymore which have a usage of 0.
Attachments 1 image(s) & 0 video(s) found.
VN:F [1.9.13_1145]
Rating: 9.6/10 (5 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
Advanced tag search, 9.6 out of 10 based on 5 ratings
    Advanced tag search
    Advanced tag search
    search-by-post-tags.zip
    2.6 KiB
    38 Downloads
    Details...
    Bluehost

    Mail this!

    To: From:Sum {6+7} =  
    Anything to add ?

        You must be logged in to post a comment.