I just wrote a simple plugin to auto tag new posts. It sends the content to tagthe.net and yahoo and gets back related tags. I must say these
work quite well and can be left on auto pilot if you’re like me and not a big fan of tagging your posts…
I use it on Renewable Energies from the Web, and it seems to be doing quite well.
40 Responses to “Auto Tag Wordpress plugin”
RSS feed for comments on this post. TrackBack URL









Hi Jonathan,
as I started looking for a autotag plugin I found yours. But as I installed it I saw a few things I didn’t like:
- When I update a post it adds tags and it doesn’t matter if there tags around or not.
- It adds nonsense tags lik ‘2c’, ‘tag 3d’, …
So I decided to tune your plugin a bit. If I would have found out your email address, I would have sent you the rewritten autotag plugin. You have mine now, if you want it send me a mail.
Regards Thomas
Hello,
It seems that there is a bug with the selected keyword. In my admin, I see many many ” – ” selected for a tag. It’s not just on ” – “, but a lot of.
Could you tell me if is there a possibility to unselect this character ? This one : -
Thank’s a lot for your help,
Georges
That is very strange Georges… Maybe you have lots of – in your post? Otherwise download the latest version, you can decide how many tags each service will return.
@Thomas Stachl: These problems seem to occur with the tagthe.net service. I am planning to add options to be able to choose how many tags and from where are retrieved. But I’m curious as to how you solved the problem. I sent you an email, awaiting your reply.
Does your autotag plugin work retroactively? In other words can I use it to automatically tag the posts in my archive? or can I adjust a few lines of code to make it retroactively tag posts?
@Melinda No, can’t do that. You’d have to open up each post for editing and then save it. Then the tags would be updated. I guess it would be possible to write a standalone plugin that would just open each post and then save it again… That would work, because the auto-tag plugin does it’s thing every time the post is saved.
Hello Jonathan,
Thank you for the update. Limited to 5 keywords. But do you think that you can add another option to remove a tag or an other. If I want to remove all ” – ” into the database in the same time, this option will be a great solution, I think.
My WP is in french and many word use the ” – ” for collapse a word, like ” porte-feuilles “. I think the thousand of keyword indexed intoo the database are caused by this particularity of the french language.
Thank you for your time ;=)
Georges
Will put an option to that effect in a later version. In the meantime, try setting the number of tags from tagthe.net to 0. You can delete the tags you do not want from the admin interface.
Thanks! I’m like you- not a big fan of tagging every post- and I was very glad to find your plugin.
Works beautifully, thank you.
The plugin is just what I had been looking for. I will recommend this plugin in an blog article of mine.
Sadly the services sometimes replies very strange results. I dont need tags like ‘ik’ and ‘hbz’ most of the time. But this is yahoo’s fault.
You should make a plugin that goes thought all your articles and tag them automatically like you already said in the comments.
how i can remove the tag DON which appear a lot?
Thanks a bunch and very good work 10X
Hi.
I have the same problems with tagging articles with pictures in it. TagTheWeb always gives me ‘align’ ‘caption’ ‘width’ ‘height’ and sometimes other stuff back. I think if you would just transfer the plain text and exclude all the HTML-Tags the problem will be obsolete.
Thanks
Yes, I agree. As soon as I find some time to do it, I will.
[...] Seite des Authors: http://jfoucher.com/wordpress/auto-tag-wordpress-plugin/ [...]
I wrote and article on my blog. The plugin is worth support – you gave me the plugin and I give you a free article.
Greetings
There is a plugin to do a mass edit. The plugin lets you edit 15 posts at a time. So I use that to update my old post.
Like the idea of the plugin and it works reasonably well apart from occasionally coming up with crazy tags (e.g. Don). Once a post has been tagged it would be nice to be able to edit the tags and save without Autotag jumping in again ad re-adding the tags you’ve just deleted!
Other than that – quite good – thanks!
Thank you so much for this plugin! It has really saved me.
I agree with Steve that it would be awesome if we could manually edit tags on a post without Autotag interfering. Perhaps a “Disable Autotags” option in the edit post area.
Also it would be great if Autotag took the title of the post into consideration. My site has a lot of podcasts and therefore quite short posts where the title is key to the tagging.
Thank you again for this. Great work!
Thanks to you both. The problem is that the plugin jumps in every time the post is saved… it should detect whether the tags have been manually edited or not, but I’d have to research how to do that. Another solution would be to tag the post as it is published, but then it would not be able to tag the past posts when you first activate it. A solution to this would be to have an option to choose between modes. Would that work ?
Taking the titles into account for the tagging doesn’t sound too complicated, but I’d have to find time to code it…
Instead of sending the content to tagthe.net and yahoo for related tags, why couldn’t you have the plugin do less work?
First, the user would create tags manually within the admin panel. Then, every time a new post is made the plugin would automatically add/assign only the tags previously created AND appear in the title of the post, to the post.
That way you have total control of what tags are used and you never get tags you don’t want. Just create tons of keyword tags relevant to your blogs topic and let the plugin do the rest.
Wow. I want one of those.
Yes, Jonathan, I think if one could switch between modes that would be a great improvement. Then when one first installs the plugin they can tag past posts but afterwards switch to only on publish and be able to manually edit tags without the plugin overruling them.
I’m also getting a ton of errors from the plugin since I upgraded to WP 2.8.5. When I edit a post I get a crazy long list of errors and it comes very close to crashing my browser.
Thanks for all your work. It is so appreciated!
If I am adding a new post to my blog and it seems the browser is just doing nothing but waiting for a response from the server when I click publish I will find these errors in my server log file.
PHP Warning: feof(): supplied argument is not a valid stream resource in /public_html/blog/wp-content/plugins/auto-tag/auto-tag.php on line 51,
PHP Warning: fgets(): supplied argument is not a valid stream resource in /public_html/blog/wp-content/plugins/auto-tag/auto-tag.php on line 52,
over and over and over till I click stop on the browser.. Hundreds of lines of error messages if I let it keep going. Funny thing is if I reload the page and publish again it usually goes through?
Something seems to be sticking in these lines:
while (!feof($fp)) {
$buf .= fgets($fp,128);
}
Is there anyway to make the PHP loop exit out if it doesn’t receive the results it is expecting?
I’m not sure what causes the problem to begin with but it would seem there should be a back door for cases like this so the script doesn’t keep looping over and over??
If you have any advice it would be greatly appreciated..
Thanks for the awesome plug in..
Kevin.
I think I fixed the problem by modifying line 51.
if ($fp) // Added to stop a loop that was filling up the log files for some reason
{ // My addition
while (!feof($fp)) {
$buf .= fgets($fp,128);
}
fclose($fp);
return $buf;
} // My addition
Everything seems to be working correctly after I added those couple lines to make sure $fp was true before entering the while loop.
If you have a better idea I’m open for suggestions. I just needed to put something in there to stop it from filling my log file. It went from 10meg to over a gig in one night.
Kevin.
Cool, thanks. Guess I’ll have to put that in, then. Sorry about the lack of updates lately, I’m really tied up with work
Dunno if I’m doing anything wrong, but I’m always getting 12 tags even if I put 1 in both settings. Any way to correct this?
Thanks… Can u remove the Yahoo Tag? Dont work.
One Problem… My Settings: Yahoo 0 and tagthe 6. But sometimes come 12 Tags, sometimes 20… But i want 6 Tags.
Ups: Wordpress 2.91 i use…
Just out of curiosity…
What “language” did you use to write this plugin? ie PHP, AJAX, java, etc.
My skills with HTML and PHP are only so-so but improving, and I’m thinking about working on a standalone program to open and save posts, as you suggested. Thanks!
The Auto Tag plugin seems to run when I delete posts. I have a bunch of posts without tags (prior to Auto Tag). When I delete them, they get tags. If I delete enough at once it crashes out from too much going on.
Thanks for sharing this plugin. It does seem to work pretty good. In the next incarnation, you might want to incorporate a way of excluding certain words/phrases and make it so one can turn off the tagging routine on a per-post basis. Heck, I’d even be willing to pay you a few bucks if the the plugin did those things.
Hy. Can you add to your plugin “tagthe.net” ? It`s show relevant tags for my language(Romanian). This tag site I found on other worpress plugin but your plugin it`s best. Thanks
Hi, Tagthe.net is already included in the plugin.
awesome plugin
thanks
it does not work for me..
Do you get an error, or does it simply not show any tags ?
Where do we configure the options? I cannot seem to find the “options” section.
In the left sidebar, under the “settings” heading, you have a link “auto tags plugin”. Click that.
Nope, not there, Jonathan. I’m using WP 3.0. Any suggestions? Thanks.