Updated to Version 3.0! New Support Page
Titles to Tags is now fully-functional with WordPress 3.0!
I’ve finally found time to wrap by brain around how Tortoise SVN works – which means understanding SVN in the first place, then figuring out how Tortoise’s GUI works – and I’ve updated the plugin after many moons of inactivity. Updates include some revamping of the code based on my experiments with it in another plugin, improved documentation in the plugin itself and bug fixes including the phantom tags commenters have reported.
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.
And hey! If you like this plugin, I would really appreciate it if you went back to the WordPress.org page and rated it! Thanks!


There is conflict between The Titles to Tags Plugin and FeedWordPress Plugin.
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
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!
Hi Thomas!
I download version 1.2 but i still have the same problem.
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!
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
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.
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.
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.
Thank You very much. Your support is great.
Your very welcome. I hope you find out what the problem is!
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?
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.
@Klark, glad you liked it! I’ve found it very, very useful, myself.
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.
is this still an issue? looks like a showstoper especially when using mutags…
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.
Works great, thank you
@baron ~ Glad you like it, use it in good health!
hi Thomas.
thanks for your plugin. it´s very handy.
i have little question about modifying your plug. i´m pretty new to php so i have no clue what part of hn_title_to_tags.php should i modify.
here is my problem: i want to add also titles first alphabet to post tag. can you help me with fixing the php file?
thanks
@Epi ~ If you mean the first letter of the first word in the title, then you should probably take a look at the titleToTags() function around line 73. Before the loop using $title_werdz, you might want to insert your own code to deal with the first value in that array, $title_werds[0]. How you go about that is up to you, and it’s beyond the scope of this site to help you with basic PHP tutorials. But good luck!!
Hi,
I use you plugin with wp 2.8.4 and works fine, but there is a problem with ignore list.
All words are converted to tags also included in the ignore list
Could you help me?
Thanks
Hmmm… I haven’t seen this problem with anyone else yet. I’m on WPMU 2.8.4 and not having a problem.
Are you using any other plugins that do something on post save? Perhaps there’s a conflict?
I’ve resovled. There is a problem with characters à è ù ì ò and if you change word list. I’ve insert manually words in database (hn_title_to_tags) and works correctly. Great plugin. I hope in your new release. Thanks. Marco
Marco, thanks!
So, what you’re saying is: if you add those characters to the plugin through the admin panel, they screw up the show? I’ll have to set it up to escape those characters soon. Thanks for the update!
It would be nice to have option to be able to add title tags even if some tags already exist!
That actually the only way I want to use it.
It would be nice to have option to be able to add title tags even if some tags already exist!
That's the way I would like to use it.
Anyway, in WP 2.8.5 it doesn't work at all.
Mark ~ the nature of tagging is such that it wouldn't necessarily make sense to create multiples of the same tag, unless there is some other purpose for which you are using them. Anyway, looks like you've decided not to go with WP anyway.l Best of luck!
I do everything on WP! – but this plugin says that is compatible up to 2.7.
Is it tested on 2.8.5? It didn't work for me.
And having an option to add title tag to existing tags (not duplicates) it would be very cool.
Thomas, I did some more testing.
Titles2Tags works in 2.8.5 only if Simple Tags is not activated.
Of course Simple Tags is needed to tag pages and feeds, so Titles2Tags needs some fix to work together with Simple Tags.
Second point is – it tags single keywords, but not the whole title, eg.
If title is "Tiger Woods" – I want tag "tiger woods", and not "tiger" and "woods"
Third point – Excluded Keywords don't work in 2.8.5.
Fourth – still needs an option to add tags, when other tags exists (not duplicates).
With those 4 points resolved, it would be the best plugin!
@Mark ~ Your second point is certainly a nice feature, but simply too much work for me to code in. How would one go about creating a plugin which can capture every mulit-word eventuality? Particularly for topic-specific blogs full of arcane words and phrases? It might be possible to create a user-editable whitelist, but its not on the agenda currently. The plugin is designed for laziness and forgetfulness, not necessarily completeness!
This also goes to point #4: the idea is that this plugin gaurantees that you have tags in all posts. It's not designed to add tags even though you've already added them. After all, what would be the point of adding tags if you're not also adding keywords from the title? You either are or are not manually putting tags in. I don't think that adding such a feature as this would be in keeping with the design idea of Titles2Tags, so this will probably not be implemented.
I've not had a chance to go back and look at this plugin in a while. I'll have to check out the problem with Simple Tags. Did you get an error message, or what? I'll have to figure out the excluded words thing. None of the excluded words are working? Or is the list not editable?
@Thomas – No error with Simple Tags, just it does nothing.
Without Simple Tags activated, it works adding new tags, but None of excluded words are excluded.
@Thomas -did you manage to figure out what is happening with Simple Tags and Excluded words?
I did everything and all I get is No Tags and this forum script sucks.
This is not a forum script, sir. This is a WordPress plugin and it's doubtful you did "everything."
Hi there. I use your plugin succesfully on my website. Now i moved my website to a new server, centos 5.4 .. (home made) but your plugin doesen't work … i try to reinstall ….but nothing change when i publish a post. What can i do ?
Dodo, sorry for the late reply. Could you provide more detail as to what is going on? Are you sure this is the only plugin you are having a problem with?
Pingback: Coretan Tinta » 5 Plugin Terbaik untuk Blog Anda » Coretan Tinta
Scott, the plugin is designed to strip such punctuation out of tags for a variety of reasons. You might program in an exception for certain regular expressions, but you're on your own on that one, I'm afraid! Personally, where I've used date tags, I've always done YYMMDD so that at least they organize in correct date order, but that probably isn't much help to you. Good luck!