WP Auto Tagger
Description: This plugin uses the Yahoo API to suggest tags based on the post content. The plugin will add a `Suggest Tags` button to the `Write Post` page sidebar.
Rating:
Size: 60.4 KB
Downloads: 422 [Download Now]
Description: This plugin uses the Yahoo API to suggest tags based on the post content. The plugin will add a `Suggest Tags` button to the `Write Post` page sidebar.
21 Comments
Just downloaded and ran your plugin and got this error:
Parse error: syntax error, unexpected T_VARIABLE in line 73.
Added a “;” at the end of line 72.
So far it has been great, and doing a great job of picking out tags. Any chance that this plugin can do it to all post automatically?
Thanks for letting me know. I had fixed that but forgot to update the .zip. You can download it again.
That’s a good idea. I’ll try to add bulk tagging for existing in the next version.
Bulk tagging / automatic tagging is a good idea. I’m looking forward to the new version.
However, will it be possible to tag already existing posts?
Hi,
Can you possibly make an option of auto-tagging the post with all the yahoo tags when it’s published, so that the author can let the script can take care of any tagging matters?
Hi,
I really like your plugin. It doesn’t appear to be compatible with WP 2.5 though, any plans to make it compatible?
Torabayashi,
I’ll add an option of auto-tagging in the next update.
Paul,
I don’t know what is going to be different with WP 2.5 but I will try to make the plugin compatible when its released.
Update: Added option to automatically tag post on save.
I appreciate the update, it’s very handy to auto tag on save. I thought I’d let you know, there’s still a problem with WP 2.5 however, clicking the ‘Suggest Tag’ button doesn’t work, it only results in an error, fortunately using the button isn’t actually needed anymore.
–Paul
Hi,
After installing WP 2.5-RC2, I’m getting an error on the auto draft save function that appears to relate to your plugin.
The error is:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in/home/macnight/public_html/wp-content/plugins/auto-tagger.php on line 130
Warning: array_walk() [function.array-walk]: The argument should be an array in/home/macnight/public_html/wp-content/plugins/auto-tagger.php on line 131
Warning: array_unique() [function.array-unique]: The argument should be an array in/home/macnight/public_html/wp-content/plugins/auto-tagger.php on line 132
Warning: in_array() [function.in-array]: Wrong datatype for second argument in/home/macnight/public_html/wp-content/plugins/auto-tagger.php on line 133
Warning: Cannot modify header information - headers already sent by (output started at /home/macnight/public_html/wp-content/plugins/auto-tagger.php:130) in/home/macnight/public_html/wp-includes/classes.php on line 805
If this is your issue, as it seems to be, would this be something you can fix easily enough?
Peace,
Gene
I wanted to add a new wrinkle. That error appears only on the initial auto save of a draft post. On subsequent auto saves, after I do a full save of the post, there is no problem. I hope that doesn’t make this all the more difficult for you to figure out.
Peace,
Gene
Ok, thanks for listening!
I have been getting the same errors as Gene, the solution was fairly simple. I added these lines to auto-tagger.php and it seems to work for me…
if ($results[’ResultSet’][’Result’] == “”) {
return $tags;
exit();
}
Just find….
129. $results=unserialize($response);
130. $tags=array_merge(explode(’,',$tags), $results[’ResultSet’][’Result’]);
and change it too…
129. $results=unserialize($response);
130. if ($results[’ResultSet’][’Result’] == “”) {
131. return $tags; exit();
132. }
133. $tags=array_merge(explode(’,',$tags), $results[’ResultSet’][’Result’]);
Okay I made a small typo in my code, sorry guys. instead of “if ($results[’ResultSet’][’Result’] == “”) {” on line 130 you need to put “if (if (!is_array($results[’ResultSet’][’Result’])) {) {”
This doesn’t seem to be working with WordPress version 2.5
Strange I’m running 2.5 as well.
Just looked, did you copy and past the code from above?
Just tried it my self and the quote simples been changed. double check that the correct single quotes are being used in the code, and if your still having problems.
Are you getting the same error message or has it changed at all?
I’m not getting an error, the tags just aren’t showing up in the tag box for me when I click the ’suggest tags’ button
Stuart: I tried pasting in your code snippet but it caused a fatal error and the website would no longer load.
Reality: I think you’re seeing the same problem I am, you click the button and nothing seems to happen. But additionally, in IE7.0 anyway, you’ll see an error icon in the status bar, double click the icon and a message box pops up with the error message. Browser settings will also affect when and if you see the errors in the page.
Plugin Author: There appears to be two distinct problems, 1) errors displayed when saving posts and pages, 2) clicking the auto tag button doesn’t add the tags.
–Paul
Love this plug. However, I’m installing it in a site that has over 150 posts … no tags. Is there a way to tag them without going through and then save again?
Do you plan to update this for WP 2.5?
Can anyone of you help me adding a function that excludes some tags (I’ve already tried wp_tag_cloud(’exclude=word1,word2);…
Best regards,
Alexander.
hi. Thanks for plugin
perfect.
regards