Wordpress Plugin: Yahoo Auto Tagger for Blog Posts

March 8th, 2008 - Posted in Products, Wordpress Plugins, realespace |

Long time ago I was a big fan of Ultimate Tag Warrior wordpress plugin for tagging my posts. I loved that plugin. It was definitely in my top 3. Now that Wordpress has incorporated tagging (term taxonomy), UTW has all but disappeared. I think it is still around, but last time I looked for it, I could not find a version for Wordpress 2.3. Wordpress now has all the functions for terms and tags and you really don’t need UTW anymore.

The feature I really liked about it was the ability to do a yahoo keyword search based on the post content and then choose which keywords you want to use for tags.

I found a couple auto-taggers, but each of them included all the keywords from yahoo for your post. I would rather pick and choose the keywords for tags. So I wrote my own plugin.

Download the plugin here

It’s really simple. the button is added directly below the edit field for writing a post.

yahoo auto tags for wordpress

Once you are finished with your blog post, and before you publish it, just click the button and it will return all the keywords for the post. Then click on the tag and it automatically gets added to your the tags input.

Please note:
The hosted by godaddy checkbox is important. If your website is hosted with godaddy.com, you have to check that box to get results. This is because godaddy.com make you go through proxy servers to fetch remote content using CURL.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
        $curl = curl_init(); curl_setopt( $curl, CURLOPT_URL, $url );
 
curl_setopt($curl,CURLOPT_VERBOSE,1);
 
if(get_option('godaddy_host'))
 
{
 
curl_setopt ($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
 
//"http://64.202.165.130:3128"
 
curl_setopt ($curl, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
 
}
 
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
 
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
 
curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 30 );
 
curl_setopt( $curl, CURLOPT_TIMEOUT,500 );
 
curl_setopt ($curl, CURLOPT_POSTFIELDS, "appid=testingyahoo&output=php&context=".$_POST['context']);
 
curl_setopt( $curl, CURLOPT_POST, 1 );
 
$res = curl_exec( $curl );
 
curl_close( $curl );

More information on the api for Yahoo context search

Update: 3-10-08
Fixed permission denied error on the ajax call.


9 Responses to “Wordpress Plugin: Yahoo Auto Tagger for Blog Posts”

  1. 1 JeffX

    Good stuff Matt!

  2. 2 matt Dunlap

    Thanks, hope it helps

  3. 3 Torabayashi

    Hey,

    I’m actually interested in the auto-tagger plugins that included all the keywords from the yahoo api. Can you tell me the urls for them?

    Thanks!

  4. 4 Sammy123

    This does not work with WP 2.5…

  5. 5 Matt Dunlap

    Not sure, I haven’t had time to do try it. From what I have seen the terminology datatables have not changed so it should work. I think 2.5 changed the way the tags are displayed, but still get the tags from the same source. I would really appreciate anyone to try it on 2.5 and let me know :)

  6. 6 corp.yu28

    not bad~~~ :D

  7. 7 Sammy123

    I am trying with WP 2.5, without success.

  8. 8 Sammy123

    Which auto-taggers “included all the keywords from yahoo for your post”? Thanks!

  9. 9 Free Articles

    Oh this looks great would try his out.. thanks

Leave a Reply


Add to Technorati Favorites

Featured Sections