Welcome to WebmasterWorld Guest from

Forum Moderators: ergophobe

Message Too Old, No Replies

Simple Tags Plugin for WordPress - Related Tags

"Related Tags" Issues with WP SimpleTags Plugin?



5:03 pm on Jul 6, 2009 (gmt 0)

5+ Year Member

I've been tinkering around with the Simple Tags Plugin for WordPress for a while now and I can't seem to get it to activate a widget for Related Tags. Essentially what I'm trying to do as have a tag cloud of some sort along the right side of a blog post (this I have been able to do) and manipulate that tag cloud to allow me to click on a term in the cloud and it allows me to search for posts that contain multiple tags. I will give an example to illustrate:

Say I have a blog about widgets, and I write a post that has the following tags: blue, cheap, buy

Now, I also have a post elsewhere within the blog that has the following tags: red, trinket, Philadelphia.

These posts would otherwise not be lumped together (as far as tags are concerned) given the fact that they share no tags. So far, I have been able to implement a widget on the SimpleTags plugin that lists a tag cloud of related tags on each post. In other words, the first blog post would have a list of related tags that would include "red," "trinket," "Philadelphia," and any other tags that have been used throughout the site. I have already managed to get this to work. Now, my question is if I am looking at a list of posts that include the tag "blue," how do I manipulate the tag cloud next to it so that when I click on "red" (or perhaps a "+" symbol next to "red") that it then populates a list of postings that include both "red" and "blue?"

Hopefully my question is clear, any guidance on this or any Simple Tags suggestions would be greatly appreciated, thanks!


5:43 pm on Jul 7, 2009 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

I think I've got it. You want to be able to do OR searches (it has either this tag or that tag) and create custom lists of related tags?

Anyway, I'm looking at the related tags wiki and either I'm just not getting it, or it needs to be in a custom constructed URL, and the plugin does not have the ability to do this as part of the UI out of the box.

[code.google.com...] - my head hurts!

I find it ironic that the plugin is named Simple Tags!


2:01 pm on Jul 8, 2009 (gmt 0)

5+ Year Member

Thanks so much for the response! I did look through the Simple Tags wiki and what you're saying is similar to what I'm trying to figure out. If you look in the wiki, it has the sub-heading titled "method." Here is the text from the wiki about that:

(string) Method of tags intersections and unions used to build related tags link:

* OR - Fetches posts with either the "Tag1" or the "Tag2" tag.
* AND - Fetches posts with both the "Tag1" and the "Tag2" tag.

What I'm trying to do is implement the "AND" function so that it will return posts that contain more than one tag ("red" and "blue" from the original example).

Any ideas how this can/should be implemented? I've fiddled around with seemingly every combination to activate the "AND" function of the plugin to no avail

Any additional insight will be greatly appreciated!


6:10 pm on Jul 9, 2009 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Sorry, I looked over it again, but just don't have time to install and test it. I hope you got it sorted out.

Featured Threads

Hot Threads This Week

Hot Threads This Month