WordPress Plugin: Tag Search in WordPress 2.3+
This wordpress plugin ensures tags associated with a post are searched when users perform search using the out-of-box wordpress search feature. This plugin works with the new WordPress 2.3 native tagging features.
This plugin is beneficial for those that associate tags with posts that don’t appear in the post content.
Pre-requisites
- WordPress 2.3+
Download
Current version of WordPress Tag Search Plugin is 1.2
wp-tag-search.zip
Quick Start Instructions
- Download plugin installation and upload wp-tag-search.php to your plug-ins folder, usually /wp-content/plugins
- Login to wordpress administration panel and activate the plug-in (Under plug-ins). Plugin name is Search Tags
Change Log
.1
- Initial Version
.2 (10/23/2007)
- Added group by to ensure posts with multiple tags are only returned once
.3 (10/25/2007)
- Removed debug statement…
1.0 (12/28/2007)
- Ensured plugin only searches posts in PUBLISH state
1.1 (8/29/2010)
- Significant Performance improvement. Credit to Loïc Mahé
1.2 (8/29/2010)
- Added ability to also search category names
Demo
See plugin in action at Pink Cake Box Blog by searching for wedding cakes
Frequently Asked Questions
None yet!
Donations (Link to us)
If you use this script and find it worthwhile please link back to our main site. While we enjoy releasing scripts to the general community, we also look to benefit by drawing more traffic to our site. Feel free to link back however you want - here is a guideline:
Pink Cake Box - Our pastry shop in New Jersey that specializes in custom made wedding cakes, novelty cakes, cupcakes, wedding cupcake stands and specialty cookies.
October 27th, 2007 at 1:54 pm
[…] Tags associated with a post are not searched by default, so I created a plugin to do […]
November 11th, 2007 at 11:03 am
Hi,
Much needed plugin, thanks! One problem that I’ve noticed is that the plugin displays drafts that have been tagged.
Thanks Rob - Fixed in version 1.0
January 11th, 2008 at 3:07 am
This is a great plugin, just what I was looking for. Since you’ve fixed the draft searching issue, this plugin works just as I hoped it would.
Thank you very much for your work on this.
February 7th, 2008 at 9:58 am
The version that is downloaded from the tag above is .3….where is the 1.0 version link? Did I miss it?
Thanks…
Thanks Larrian - forgot to upload the new version. Fixed now
August 15th, 2010 at 10:02 am
Thanks so much for this plugin!! I downloaded it at the WordPress site. I couldn’t believe WordPress didn’t search by tags. This really saved me!! Now, I just need a search by category:)
Teresa
P.S. Beautiful cakes
http://www.spdconnect.com
August 25th, 2010 at 11:41 pm
Hello,
In the company I’m working for, we use your plugin Tag Search in WordPress with WP 2.9.2. We now have 833 articles and 1208 tags. The search engine is becoming very slow and I’m pretty sure this comes from the plugin. Here are some values :
- one keyword searched for, plugin enabled : 46 seconds
- one keyword, plugin disabled : less than 0.5 second
- two keywords, plugin enabled : 88 seconds
- two keywords, plugin disabled : less than 1 second
Do you have a solution for this ? All tables are indexed, but the JOINs in your plugin perhaps don’t perform the best use of them.
Thanks is advance,
Loïc Mahé, Toulouse, France
Loïc - the performance improvements I made in 1.1 should fix this
August 29th, 2010 at 6:33 am
[…] Mahé brought to my attention a performance issue with the search tags plugin (it’s not noticeable in wordpress implementations with a small number of tags, but is much […]
November 13th, 2010 at 6:31 am
[…] a result of this exercise I was able to tune my search tags plugin as documented […]