WP Auto Tagger

Submitted on: 02 Feb 08

Website Address:

Category: Wordpress Plugins

Website Rating:

1 Star2 Stars3 Stars4 Stars5 Stars (21 votes, average: 4.48 out of 5)
Loading ... Loading ...

Author's Description:

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: 1 Star2 Stars3 Stars4 Stars5 Stars (21 votes, average: 4.48 out of 5) Loading ... Loading ...
Size: 60.4 KB
Downloads: 5041 [Download Now]

88 Comments

  1. nibaq

    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?

  2. iDope

    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.

  3. Shop Network

    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?

  4. Torabayashi

    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?

  5. Paul

    Hi,

    I really like your plugin. It doesn’t appear to be compatible with WP 2.5 though, any plans to make it compatible?

  6. iDope

    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.

  7. iDope

    Update: Added option to automatically tag post on save.

  8. Paul

    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

  9. Gene Steinberg

    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

  10. Gene Steinberg

    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. :D

    Peace,
    Gene

  11. Torabayashi

    Ok, thanks for listening!

  12. Stuart Anderson

    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']);

  13. Stuart Anderson

    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'])) {) {”

  14. RealityRehash

    This doesn’t seem to be working with WordPress version 2.5

  15. Stuart Anderson

    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?

  16. RealityRehash

    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

  17. Paul

    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

  18. Tadd

    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?

  19. Sammy123

    Do you plan to update this for WP 2.5?

  20. Karsten

    On my wordpress 2.5.1 clicking on suggest tag closes the window and saves the suggested tags to the article. I expected suggestions I can approve – not a forced add.

    Anyway, the plugin is a great idea – I really hope you polish the code so it works with the 2.5.1 Version …

  21. Alexander

    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.

  22. baron

    hi. Thanks for plugin

    perfect.

    regards

  23. Peter

    Version 2.5.1 I’m getting this error

    PHP Fatal error: Call to undefined function curl_init() in /var/www/peter/blog/wp-content/plugins/auto-tagger.php on line 118

  24. CHad

    I can not seem to get this plugin work for me….

    I tried the download…and I get errors.

    I then tried to edit the script like suggested above with no luck.

    I keep getting error messages when even try to activate the plugin.

    Can someone please help me find a working copy of this plug…please and thanks.

    Cheers

    Chad

  25. Chad

    Here is the section of code were the issue seems to be:

    if(curl_errno($ch)) return curl_error($ch);
    curl_close($ch);
    $results=unserialize($response);
    if (!is_array($results[’ResultSet’][’Result’])) {) {
    return $tags; exit();
    }
    $tags=array_merge(explode(’,’,$tags), $results[’ResultSet’][’Result’]);

    please help me find whats wrong with the code or if any have a working plugin please provide and download for this plugin.

    Thanks in advance.

    Chad

    thanks

  26. Scott

    Hi – Just downloaded the plugin on June 2nd & got the errors listed above – tried editing the file as per your comment and now get a fatal error unexpected T_IF – can you update the zip file to be correct so I can reinstall it please?
    I am on WP 2.5.1

  27. iDope

    The plugin has been updated for WP 2.5 (use the older version for WP 2.3).

  28. Peter Kroezen

    Manual suggest working great now, thanks very much!
    Where’s your donation button?
    Peter wp 2.5.1

  29. Dan

    Is there a way to exclude certain words from being tagged?

  30. Richard

    Auto Tagger is a great plugin :D

  31. Kelly

    What happened to Auto Tagger in 2.6.1? It was working great but now I keep getting an error like the one above:

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/yyyyyy/public_html/xxxxx/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 130

    also on line 131 and 132

    Please advice. I love this little plugin!
    Thanks

  32. iDope

    @Kelly: I have updated the plugin. Please re-download it and let me know if it works for you now.

  33. Pepperama

    I have done everything above and got this error as well:
    Parse error: syntax error, unexpected T_IF in ….. on line 130

    Any suggestions?

  34. Mark Mason

    iDope — I love this plugin. I am getting a similar error to the above in WP2.6.1 and plugin ver 1.3.1.

    In the below case, I was posting via XMLRPC. Of 35 files, 3 returned this error and would not post. Error seems to be related to the previously mentioned error mentioned by @Kelly above.

    junk after document element at line 2, column 0, byte 7 at c:/Perl/lib/XML/Parse
    r.pm line 187

    Warning: array_walk() [function.array-walk
    ]: The argument should be an array in /home/ccadmin/public_html/wordpress
    /wp-content/plugins/wp-auto-tagger/auto-tagger.php
    on line 131

    Warning: array_unique() [function.array-
    unique]: The argument should be an array in /home/ccadmin/public_html/wor
    dpress/wp-content/plugins/wp-auto-tagger/auto-tagger.php
    on line 132

    Warning: in_array() [function.in-array]:
    Wrong datatype for second argument in /home/ccadmin/public_html/wordpress/wp
    -content/plugins/wp-auto-tagger/auto-tagger.php
    on line 133

    Warning: Cannot modify header information – headers already sent by (out
    put started at /home/ccadmin/public_html/wordpress/wp-content/plugins/wp-auto-ta
    gger/auto-tagger.php:131) in /home/ccadmin/public_html/wordpress/wp-includes/
    class-IXR.php
    on line 379

    Warning: Cannot modify header information – headers already sent by (out
    put started at /home/ccadmin/public_html/wordpress/wp-content/plugins/wp-auto-ta
    gger/auto-tagger.php:131) in /home/ccadmin/public_html/wordpress/wp-includes/
    class-IXR.php
    on line 380

    Regards,
    Mark

  35. Chris

    I have the same problem as Kelly and I have just tried uploading the new version. My error says:

    Warning: array_walk() [function.array-walk]: The argument should be an array in /home/…/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 131

    Warning: array_unique() [function.array-unique]: The argument should be an array in /home/…/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 132

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/…/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 133

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/wp-content/plugins/wp-auto-tagger/auto-tagger.php:131) in /home/…/wp-includes/pluggable.php on line 770

    It only occurs when I try to save a post or publish a page. When I publish a post or save a page it works fine.

  36. Jared

    Hello,

    I would like to use this plugin to also enter the tags into the headers meta keywords. There is an outdated plugin that isn’t compatible with 2.6.x anymore that I used to use. The code I used was:

    <meta name="keywords" content="post);
    } else {
    echo "*keywords*";
    }
    ?>"/>

    Is it possible to do something simular with your plugin?

  37. Jared

    The code didn’t copy right…. I think you got the idea though…

  38. mark

    I am still getting the “array” errors above. I have downloaded the updated version and reuploaded the plugin several times. Any ideas?

  39. Walt

    Hi. Love the plugin. I am getting an error when posting javascript to a page (a Google video). The plugin tries to tag the page, and there is no checkbox to turn it off. Here’s the error

    Warning: array_walk() [function.array-walk]: The argument should be an array in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 131

    Warning: array_unique() [function.array-unique]: The argument should be an array in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 132

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 133

    Warning: array_walk() [function.array-walk]: The argument should be an array in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 131

    Warning: array_unique() [function.array-unique]: The argument should be an array in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 132

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php on line 133

    Warning: Cannot modify header information – headers already sent by (output started at mydomain.com/wp-content/plugins/wp-auto-tagger/auto-tagger.php:131) in mydomain.com/wp-includes/pluggable.php on line 770

  40. iDope

    I have released an update that should fix the errors. Please get the updated version.

  41. Mark

    As I said in my post, I have downloaded and used the update and it gives errors as above. Is it possible that there is some conflict with other plugins??

  42. iDope

    You need version 1.3.2 which I released today. Are you having problems with this version too?

  43. mark

    No – I didn’t realise there was an even newer version. I have now tested it and it seems to work perfectly. Thank you – brilliant service.

  44. Thomas

    Hi,

    I am using WP 2.5 and would love to use your plugin. I have just downloaded the latest version, and unfortunately it doesn’t work for me. When I activate the plugin, WP tells me that the plugin has been activated, but I don’t see any menu related to it (even in the write post section).

    Any ideas?

    Thanks a lot!

  45. Thomas

    Looks like it is working now :)

  46. iDope

    Glad it worked!

  47. Fred

    Hi,
    I’m a little confused how the auto tagging works. Does it just do it, or do you have to do something? I have it activated but don’t see any other settings panels for it.

    Thanks!

  48. Speeding Tickets

    Hi there,

    Great plugin and I appreciate it very much. Have a question though – is it possible to have some words/phrases to be excluded from being used as tags?

    I have some not very HTML literate guest posters, and currently my most popular tags are “Rsquo” and “Nbsp”. Would love to get rid of those without manually editing posts, pleeeease.. :)

    Thanks a lot, Misha

  49. Walt

    Hi. Here’s a feature request – stopwords or words that can be excluded from the generated tag list. “nbsp” and “rsquo” are examples

  50. peter - blogs unlimited

    Thanks for this plugin. I like it but am a little confused. I have 2 blogs but one displays the categories and tags below each post and the other doesn’t. The plugin is activated in both. What am I missing in blogsunlimited.ca that needs to get the categories and tags appear below each post?

  51. iDope

    Your other theme might not support tags. IIRC, the tag enable your theme you have the insert the function the_tags() in your theme.

  52. Kamau

    I have a feed planet site is it possible to auto feeds as the come in?

  53. Randy Kreisel

    GREAT PLUGIN.

    Is there anyway this can run in a script mode on a batch of posts?

    Randy Kreisel

  54. Vladimir

    Top stuff as always from you. Possibility to quickly update it for bulk/automatic tagging?

  55. mike

    hey when i post and this plug in is active i get a white screen why?

  56. iDope

    @mike: You might not have cURL enabled. Please download the latest version, it checks for cURL.

    @Vladimir & others: Bulk/Batch tagging is comming soon :)

  57. Russell Smithers

    Hello,

    I need this plug in to have a list of words and phrases that are to be excluded from the suggested and auto populated tags.

    There are some that I have to keep deleting. The plug in works correctly it’s just I want to avoid words like amp (&, and my name due to copyright on my footers).

    Will you add this feature?

    Many thanks in advance
    Russell

  58. Melinda

    Just installed on WP 2.7. It works great and will be a very handy tool!

  59. Tim

    Love the plugin, but when I activate the tag cloud, and click on a tag, nothing gets returned. Also, all my posts say tags: none.
    Any ideas?

  60. Nicola M.

    It’s a great plugin, thanks for your work!
    I’m waiting too for the bulk/automatic tagging function ;)

  61. Tim Collette

    Plugin just stopped working on main site, worked for over 3 months peerfectly fine with no changes or plugin updaes to anything else, Wordpress 2.7 MU??

  62. Tim Collette

    Any answers IDope on the reason, and it is automatically not working on all blogs as of my last post earlier today at about 2:30 Pm Pacific Time?

  63. Jenni

    I have downloaded the autotag plugin and activated it. I created my first post and I saw the autotag listings on the side. However, the tags are not showing up on my post. I have a flexibility theme and have checked to make sure the box is ticked yes to display tags below each post. Any ideas why the tags arent displaying?

    Thanks

    Jenni

  64. TechBeta

    Great plugin,Thanks.
    BTW, how to control the amount of tags per post?Thanks

  65. Auto Shop Supplies

    Tags are always the hardest part about writing blogs, I’ll have to get this tool ASAP.

  66. Jade Smith

    Thanks for this great plugin. I’ve been using for many years and have increase traffic due to it picking the right tags.

    I have just upgraded to wordpress 2.8 and it nolonger seems to work. The database was upgraded. Could you update.

    Thank you

  67. Jimmy

    hi.. does this work with WP 2.8?
    Because I have used this cool plugin for WP 2.71 and it works fine, but not in 2.8.

    thanks

  68. Joe

    Auto Tagger no longer works with the new WordPress upgrade.

  69. Allen Wagner

    I just upgraded to WP 2.8 and it seems your wonderful plugin has stopped working. Is this the case, or could it be something else?

  70. Jimmy Craig

    Hi,

    I like your plugin, but I just upgraded the above blog to WP 2.8 and it appears that the plugin is not compatible with 2.8. It doesn’t create any errors, but it also doesn’t do anything. I reloaded from my harddisk, same results. I downloaded the pluging again, repeated the upload, still no success – it’s there but it doesn’t produce any tags.

    Hope you check it out?

    Jimmy Craig

  71. iDope

    I am using Wordpress MU and the 2.8 version for it is not available yet. I’ll update as soon as I can upgrade to 2.8.

  72. Gene Steinberg

    Actually they are already testing MU 2.8.1, so time to get with the program. :)

    http://ocaoimh.ie/wordpress-mu-2-8-1-beta/

    Peace,
    Gene

  73. Biggi

    I love your plugin, especially the simplicity of it. Would really appreciate a 2.8 compatible update. How’s it looking? Are you working on it yet? Thanks so much for making this plugin available!

  74. Andrew Doran

    Love the plugin, but there seems to be no way to stop it from auto tagging when I update a post. If I delete tags I don’t want, they just get added again next time I save the post. Don’t seem to be able to remove unwanted tags at all.

  75. Ashton Sanders

    The Auto Tagger isn’t working at all in 2.8.1. =( This is one of my most useful plugins, too. I’m thinking about reverting to 2.7.1 just to get this plugin back…

    Thanks for the hard work.

  76. BlaZe

    Hey thanks for your great plugin.
    It helps me save time by automatically Tagging.
    God Bless You !

    ~ BlaZe

  77. Dilip Dabrai

    Hi,
    Can anyone tell is this plugin work on pages as well? Ig it does then I am not seeing the option in write sidebar in page editing! please can any Guru throw some light on this
    Thanks
    Regards
    Dilip

  78. Alice

    hi. The plugin is adding 20 label everytime. How can i do this as 5,10 or 15 label ?

  79. Richard

    Hye, Thank yo for the great plug in! It’s just what I was looking for!!

  80. feroz

    I found http://downloads.wordpress.org/plugin/wp-auto-tagger.1.2.zip for wordpress older versions and I installed and used it at wordpress 2.2 but when I save post it gives error:

    ——————————————————————-
    Warning: Missing argument 2 for auto_gettags() in /home/accounti/public_html/wp-content/plugins/auto-tagger.php on line 86

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/accounti/public_html/wp-content/plugins/auto-tagger.php on line 128

    Warning: array_walk() [function.array-walk]: The argument should be an array in /home/accounti/public_html/wp-content/plugins/auto-tagger.php on line 129

    Warning: array_unique() [function.array-unique]: The argument should be an array in /home/accounti/public_html/wp-content/plugins/auto-tagger.php on line 130

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/accounti/public_html/wp-content/plugins/auto-tagger.php on line 131

    Warning: Cannot modify header information – headers already sent by (output started at /home/accounti/public_html/wp-content/plugins/auto-tagger.php:86) in /home/accounti/public_html/wp-includes/pluggable.php on line 329

  81. Jenny

    This plug-in works great, but what I’d like is to be able to select how many tags per post we want to have. For example I’d like to have 6 tags at the most per post added automatically. I tried looking at the code, but I’m not a programmer so I don’t know what to change.

  82. siir arsivi

    This pluging adds tags automaticly to published tags ?

  83. Vic

    Hi iDope,
    Great plugin you´ve created. Is there a way to limit the number of tags per post?
    I saw a function wp-insert-post with the numbers 10 and 2, but not sure if this is the right way to limit the tagnumber. Thanks,

  84. Chris Coger

    I had the same problem too… How can I delete tags that are not relevant? They keep coming back after I save the post.

    Great plugin!

  85. Chief

    Its possible to add accent convertion in that plugin ?

    All word with an accent is truncated, like Québec – write bec

    hôpital its write pital … etc!

    Thx for your support

  86. mary

    great plugin. I have tried it and This plugin help me to drive more traffic.

  87. ken

    Hi iDope,

    This is a very useful plugin, thanks for creating and making it available. Is there a way to limit the number of tags per post? Please let me know when you get an opportunity. Regards,

  88. ken

    Hi iDope,
    I’m back again after 4 months!! Is there a way to limit the number of tags per post?
    Thanks.

Got something constructive to say?

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha