The Titles to Tags Plugin
January 25th, 2008 | by Thomas Belknap |Never forget to post your tags again! With the Titles to Tags plugin, WordPress will scan your post’s title for the most keyword-appropriate words and add them to your tags list automatically on save! The plugin comes with a very long list of words which are statistically irrelevant, such as “I” or “among,” which don’t make good keywords. You can also edit this list to include more or less terms by going to Options > Titles 2 Tags. There is also an option to revert to the original list, but watch out! You will lose your edited list forever if you do this!
This plugin will only save tags to your posts if none exist already. The presumption is that if you’ve already saved tags, you must know what you want and anyway, you might have removed some tags Titles to Tags added because you don’t like them. The function runs every time you save a post, either by publishing, saving or editing the post.
To install the plugin, simply download it from the WordPress Plugin Repository, then extract both the hn_titles_to_tags.php file and then hn_t2t and it’s contents into your /plugins folder. Activate the plugin by going to Plugins, and begin posting as normal.
WordPress MU Developers: Note that, if your creating a community-based website built on MU - and your users aren’t being diligent about adding tags - this is a great way to get those tags created painlessly! You can place the file and it’s companion directory in the /mu-plugins file and each blog will get it’s own editable list of ignored words.
Tags: Plugin, Tags, Titles, WordPress
17 Responses to “The Titles to Tags Plugin”
By Penko on Feb 12, 2008 | Reply
There is conflict between The Titles to Tags Plugin and FeedWordPress Plugin.
By Smart Search Engine Optimization on Feb 12, 2008 | Reply
Fatal error: Cannot redeclare lower_no_punc() (previously declared in /home/***/public_html/wp-content/plugins/title-to-tags/hn_title_to_tags.php:41) in /home/***/public_html/wp-content/plugins/title-to-tags/hn_title_to_tags.php on line 41
By Thomas Belknap on Feb 12, 2008 | Reply
Hello, SSEO, Penko!
Sorry about that name collision. Please go back to the WordPress Plugin Repository and download version 1.2, which corrects this problem.
Thank you for the information!
By Smart Search Engine Optimization on Feb 13, 2008 | Reply
Hi Thomas!
I download version 1.2 but i still have the same problem.
By Thomas Belknap on Feb 13, 2008 | Reply
Hmmm. . .
Did you download it from the Wordpress.org site or from the link at the top of this page? Because the link at the top of this page appears to be screwed up (it’s now corrected.)
Definitely check to see if version 1.2 is the version you have. That version uses a function renamed to hn_lower_no_punc() to perform the same task, so if anything, that error should definitely not come up. The next thing I would say is check to see if you deleted the other version of the plugin off the server and then re-upload.
Let me know how it goes!
By Smart Search Engine Optimization on Feb 13, 2008 | Reply
Yes. I delete the old plugin form my WP Plugins directory and upload the new one downloaded from Wordpress site. Now error is
Fatal error: Cannot redeclare hn_lower_no_punc() (previously declared in /home/***/public_html/wp-content/plugins/title-to-tags/hn_title_to_tags.php:41) in /home/***/public_html/wp-content/plugins/title-to-tags/hn_title_to_tags.php on line 41
WordPress: 2.3.3
PHP: 5.2.5
Apache: 2.2.6
By Thomas Belknap on Feb 13, 2008 | Reply
Hmm. . . Just took a closer look at your error message. Read it again:
I’m not sure what’s going on there, but it looks like there’s something weird about your setup. As I read that error message, it almost looks like its trying to declare the same function from the exact same line of the exact same file twice. How that happens, I’m not sure.
There may be some sort of conflict with another plugin, possibly a caching plugin. All I can say is, you might want to disable whatever caching plugins you’re using and see what happens.
By Smart Search Engine Optimization on Feb 13, 2008 | Reply
I use FeedWordPress and Title To Tag Plugins Only. Your plugin works perfektly when i write my own articles, but when articles are from FeedWordPres there is this error.
By Thomas Belknap on Feb 13, 2008 | Reply
Well, there has to be something weird about FeedWordPress, then. Honestly, I don’t think you would find that this is a problem only with my plugin, but any plugin that operates on save.
That other plugin is much too complicated for me to dig through it and find out what’s wrong, so I would go back to the developer and ask them.
Sorry I can’t be more helpful, but I’m reasonably sure it’s not a flaw in my plugin that’s causing the problem.
By Smart Search Engine Optimization on Feb 13, 2008 | Reply
Thank You very much. Your support is great.
By Thomas Belknap on Feb 13, 2008 | Reply
Your very welcome. I hope you find out what the problem is!
By Kyrre on May 8, 2008 | Reply
It seems like i’ve lost my text file with the words that should be left out. Used the automatic updater which is on the new wordpress. Any help?
By Klark on Sep 24, 2008 | Reply
Why is it that the simplest plugins are always the most useful.
This is perfect for MU. My users seem hell bent on not tagging their posts. Was surprised to see it work (or not work) when the user actually puts their own tags. NICE.
By Thomas Belknap on Sep 24, 2008 | Reply
@Klark, glad you liked it! I’ve found it very, very useful, myself.
By Klark on Sep 25, 2008 | Reply
Mmmm.. for posts that they do tag, the plugin still seems to create tags based on the title but doesnt assign them to the post. It shows up under Manage > Tags.
I’m using MuTags for sitewide tags, they show up there as well, but assigned to the post.
Weird.
By ovidiu on Oct 11, 2008 | Reply
is this still an issue? looks like a showstoper especially when using mutags…
By Konstantin on Oct 11, 2008 | Reply
You know, there is no hn_t2t in the zip, and no stopwords.txt either. Am I the only one? I’ve tried downloading a few times but its never in there.