AutoMeta: Automatic Meta & Technorati Tags for WordPress
This plugin will automatically generate and include HTML Meta Tags and Technorati Tags based on the full text of your post.
What’s it for?
The explosion of people with their own websites (often called ‘blogs) has gone hand in hand with the rise of automated aggregation systems, which attempt to filter out the irrelevant majority so that the end user sees more content that is useful. The digital equivalent of separating the wheat from the chaff.
Sites such as Technorati have taken this concept further by introducing the concept of tags. A tag is a word or phrase that describes what a particular web page is about. It’s essentially a proprietary version of the HTML meta tag – this plugin manages both kinds of tags for you.
Installation instructions
To use it:
Download this file – this is the stable release, which is what most people want – if you’d like to try an advance copy of the next version then scroll down- Unzip the file and copy it’s contents to your
/wp-content/plugins/directory (so that it’s path is/wp-content/plugins/autometa/). - Enable it on the plugins page.
- Look for the AutoMeta menu which appears on the plugins page once the plugin is enabled.
- Click the “Add the index” button to create the necessary indexes.
- That’s it.
Automatic Tag Generation
This plugin will automatically generate and include HTML Meta Tags and Technorati Tags based on the full text of your post. When you save your post (and before you publish it) the plugin checks to see if any tags have been associated with it.

If no tags are found then it generates them based on the content of the post.
Hand Written Tags
Automatic extraction of words can never be perfect, so once tags are generated they can be edited and improved by hand.
If, like me, your article goes through several drafts before publication then you’ll notice that the words are generated the first time you save the document, but then they remain unchanged as the finished document evolves. The plugin will automatically regenerate the tags whenever there is no autometa custom field, so if you click on the Delete action, you’ll get a fresh set of auto-generated tags that you can refine by hand.
Hints
I don’t recommend that you use the plugin without hand-tweaking the tags; instead, think of it as a useful guide. If you wish to include tags with a space such as “world wide web” then you should insert dashes where you’d like the spaces to be, i.e. “world-wide-web”.
FAQ
- Where can I see the tags/keywords in my output?Meta Keywords are added to the document header for each post (you won’t see them on the index page), so load one of a recent post in your browser (one that that you’ve written or saved since the plugin was installed) then view the source of the page. Near the top you’ll see a message detailing the version of autometa that’s in use, and a list of keywords. Technorati tags are either added to the footer (so scroll to the bottom) or, if you’re using a more recent release, the tags may have been included in the document body, so you’ll see them without looking at the source.
- The plugin is installed and appears to work, but I see just a set of empty quotes where the list of tags should be; what’s wrong?99 times out of 100 you are hitting a bug that existed for a very short time in WordPress 2.0 – it’s been solved as of WordPress 2.0.1, so the problem should disappear when you upgrade.
- How do I show the Technorati Tags in my sidebar/theme?If you want to add the tags to your sidebar, then that add
<?php AutoMeta::includeTechnoratiTags();?>to your theme wherever you want the taglist to appear. - Can I customize the output a bit?Yes, you can customize the output a lot. Use the more parameterized
<?php AutoMeta::echoTechnoratiTags("headline", "tail", "line prefix","line_suffix", "no_tags_message");?>, modifying the parameters as necessary to fit your theme. For example:<?php AutoMeta::echoTechnoratiTags("<h1>Technorati</h1><ul>", "</ul>", "<li>","</li>", "Zarro Taags!");?> - Do I have to have the tags on my page?No. Technorati can discover your tags from the feed (where the tags are included as categories), so (based on experience) it appears that you don’t need visible tags on your page, so just include them if you want to.
- I want to be as lazy as possible, can the plugin do it’s work when I publish without me having to save it?Yes, that’s the default behaviour, but there is a caveat. If you want to be lazy and just publish then that’s fine, you can, the plugin will still extract the most important words from the article and turn them into tags/keywords. The downside is that if you’ve not mentioned a term in an article then it cannot appear as a tag – so if (for example) you write an article about iPods and don’t mention Apple, then “Apple” can’t be a tag, so there’s an audience group that you’re possibly missing. This is why hand-finishing your tags is recommended.
- Can I create keywords/tags that are not just single words, like “mostly harmless”, “ford prefect” or “chesterfield sofa”?Yes. These can be created using either the minus or plus characters to separate the words you wish to join. The tags “ford-prefect” and “ford+prefect” both turn out as “ford prefect”. It is recommended that you use the “+” character; the “-” is a hangover from an earlier version and (if people request it) could one day be removed to allow for hyphenated tags.
Planned/Unplanned Features
I don’t have time to extend this at the moment, but I’d like to to have:
- default set of metadata/tags for use in non article pages
- a better admin interface
- user editable tag list length
- user editable the minimum word length
- user editable stop list
- thesaurus lookup, so similar words could be group scored
- Optional Visible/Invisible technorati tags
- Tag list in Admin side bar
Versions
A list of all the releases.
Contribute
Embrace and Extend
If anyone would like to extend it, or use the code elsewhere, it’s released under a GPL license. Derivative works must also be free and must credit this work.
Alpha/Beta Testing
A development version of the next release is sometimes available too [nothing is currently available]. If you’re familiar with PHP and comfortable with wordpress hacking, then please, be my guest and help with giving it a jolly good shake to help get all the bugs out. If you’re feeling creative, invent a feature, or try implementing one of the ones listed above. Many hands make light work!
Feedback
Ideas, opinions and descriptions of problems are what can help this plugin get better – share your sparks of inspiration on the forum (or just describe the mists that are clouding your way).
445 Comments
Hi Rui, making the tags visible is something that’s coming in a later release. I’ve received a few suggestions and patches lately so when I get time I’ll be putting out a new version.
but the tags are visible, take a look at the bottom of my website http://www.ruicruz.com.
This is a really nice plugin.
Right now it seems that each word is a seperate “key word” unto itself. Is there a way to make to where you can have phrases?
Sorry, just read a little more and saw how to do this – Thanks!
It is a great plugin. I have a lot of information on my homepage, and often autometa wouldn’t give me keywords I like to have. Is it possible to have keywords generated by autometa for posts, but have manual meta tags for homepage. Thanks.
I’m growing more and mor fond of a “default” set of metadata, so I’ll look into the nicest way of adding tha for the next release.
Hello,
i have insert your plugin. it is not display the metas and the links in the footer.
can you help me?
I have install the and configured script .
Thx Mike
Hi Mike, you’ve got two initial problems that are stopping me from helping you. Firstly, you’ve altered the wordpress headers so that they don’t show the version you’re using. I need to know this. Secondly, you appear to have altered the code of the plugin so that it doesn’t print it’s version signature along with the metadata. Again, this is something I need to know, since you’re asking me to advise you on debiugging a system to which I have no access. I can see a referrer from your wp-admin pages in my logs, so I know you’ve got somehting of mine installed, but I have no visibility of what it is.
P.S. Since your domain contains what I shall call “fruity content”, I’ve taken the liberty of not republishing the URL due to the diverse readership of this site.
Hi there, have I missed somethign here, but none of my tags are visible on my posts (I have uploaded the latest version) and does the post have to be saved BEFORE publishing?
Cheers for your help!
Paul
Hi Paul, you don’t have to save before publishing, but if you don’t you’re not going to have the opportunity to hand finish the tags – the result will be totally automatic tags, which are never optimal. It’s not possible to generate the tags without saving (yet) because AutoMeta gets it’s words from the full text index… which is only generated on save.
Also, I notice from looking at your blog that you’re using on WordPress 2.0, so you’ll be affected by the “[0]” bug, so if things aren’t happening as you’d expect, then that’s the prime suspect.
Maybe I am just way too confused, but for some reason I was expecting to see a meta tag for keywords in my source code, but I see nothing.
I do see the tags being generated on the “write post” page, but how do I verify that it is actually in the source code being spidered by the search engines?
I have read through almost all of these post and am starting to get a little discouraged. Please help me understand how this works and where I can see the meta tags it generates.
Thanks in advance.
Hi Clifton, I’ve just looked at the source on your page and you’re using wordpress 2.0 and not 2.0.1, this measn you’re going to be haviong the same “[0] bug” problem as paul above. Upgrade wordpress to 2.0.1 and the lack of tags you’re seeing should turn into a plethora when the article is saved.
Building out a new blog and using this plugin. It works fine on permalinks, but I am getting the top posts meta tag info on the index page.
Hi Will, good-ish news. The index page issue you describe has been solved in the next release (thanks to one of Manuel Amador’s suggestions and code patches) so if you’re really keen to have a fix, you might like to try the alpha version which is linked in the article above. Alternatively, if you can wait a few weeks, that code will improve, stabilize and be “officially” released.
Hi,
I am using v0.5b with WordPress 2.0. I have applied the [0] fix and by viewing the page source on any of my site pages I see that Meta tags and Technorati tags are now added to all my old posts as well as new posts as I publish them.
However, I am unable to locate any of my posts via a tag search on the Autometa keywords in Technorati despite having waited 3 week or so. I can locate posts in technorati via the category tags. I have contacted technorati twice but have heard no reply. It is a little bit frustrating since my main reason for installing the plugin was for Technorati.
Can anyone who has faced this problem before give me any advice?
Thanks,
James
http://www.sns.ias.edu/~jns/
Hello,
Technorati just got back to me and said that my tags are on the main page of the blog rather than in the body of the posts.
I looked and their statement is partially true; it turns out that the tags for the most recent post are present on the main page (is this a bug?), however the tags are also present and correct for each post.
I have sent them an email to ask if tags appearing on the main page of the blog where recent posts are listed is a problem.
James
http://www.sns.ias.edu/~jns
Hi James, very useful info, thanks – and a synchonicity of sorts…
I mentioned just a smidge earlier, that the next release of the plugin removes the tags from the front page and now only includes them on the actual article pages. It also includes the tags as categories in the RSS feed (if anyone knows of a “better” way then let me know). Why they think front page tags might be confusing things I don’t know, but any insight you can throw up will be assimilated! If you’d like to try it, it’s available as an alpha.
I will wait for the update – thanks! Nice plugin.
I’m using the alpha 0.7 version at the mo to see how it’s progressing. I’ve some feedback/suggestions for you:-
btw – I’m using WP2.02 on a windows/IIS sever (in case it’s relevant)
1) UPDATing the autometa from the WRITE POST screen usually works, but then results in a different outcome when the post is PUBLISHED. In other words – if I don’t mod the autometa and then publish a post (having already SAVED and CONTINUED) it will publish it as requested and then return the screen to a blank WRITE A POST page. If I do mod the autometa and then publish the post is actually published, but you can’t tell from the screen because it stays the same (e.g. you don’t end up with a blank WRITE A POST screen). So – I guess it works, but you don’t know it by default until you view the post status or view the site front page.
2) I note that the tags are no longer displayed on the index page in this alpha release, however they seem to be displayed after the footer as a bullet list instead for each post. I’d suggest enabling the tags to be displayed either directly after the post, or within the post rather than after the footer of the page as it looks crap and ‘outside’ the context of the post, especially if he post is short, but the page/sidebars/design is longer. Just a thought.
I am running wordpress 2.01, autometa 6 and i am getting no meta keywords – only empty “” in the keyword block generated on my page….. sounds like the ‘old’ pre 2.01 errors – I just can’t get it to work. I have removed, re-added the plugin, etc – it just does not want to work
Any help would be great; Thanks;
Chris
Hi, I’m having problems calling the technorati tags manually – I’m using the code but seem to get the following error – “Fatal error: Call to undefined function: technorati_tag() … etc.,”
I’m using wp 2.0.2, and the auto (hidden) tags work fine if I set them to true, so any help would be great as I really want to use this plugin.
Thanks in advance
Hi Dave, I think this is a simple one… you need to specify the class name as well as the method name – this ensures two plugins with the same method name never clash.
… and you might want to try the 0.7alpha version since this has been specifically re-written to better display tags inline using the following php snippet:
<?php AutoMeta::includeTechnoratiTags();?>Chris Donnan, I’ve just looked at the top story on your blog, and the tags are there. Seems like you got it working… any idea what was up in case someone else travels the same path?
Coyote, thanks for those thoughts. Point 2, re: tag positioning… you can now specifically place the tags anywhere in your template
<?php AutoMeta::includeTechnoratiTags();?>but if you don’t then the code is automatically added to the page footer and (eventually) the tags will be hidden using CSS.I’m still trying to understand your first point – I think I get it – and I think it’s something I may not be able to fix, but I’m not sure, ’cause it’s all to do with which filter hooks can be used. Lats see how 0.7 progresses.
Rich, thanks for your help, I’ve downloaded the beta and used the suggested tags and it works a treat – all I need to do is config my css – thanks again, this is an excellent plugin.
Hi Rich, hope you don’t mind me asking another question – I’m trying to call in the Technorati tags manually, it works if I use the AutoMeta::includeTechnoratiTags() etc, but it’s loading as a list, I’d ideally like the tags to just load one, two, three, etc in a line with a comma separating them – can I just do this with AutoMeta::includeTechnoratiTags(‘something in here‘) or will I have to use a custom css style?
Thanks in advance.
Hi again – it’s ok I think I have sorted it.
Hi everyone,
I’ve been testing Christoph Boecken’s Lush theme for WordPress 2.0.2 and it seems that it conflicts with autometa 0.6. I’ve checked the plugin was active and tested it with different other themes and it works.
Has anyone else experienced this problem?
A
Hi Alex, can you describe the error, or pop up a copy of a page which has borked? I’ve taken a 20 second look at lush and it’s a “theme++” (insofar as it looks like it includes some quite advanced capabilities) that (a) may be assuming that other plugins won’t have altered the content or (b) may be altering the content so that the regular expressions used to add the analytics code no longer work properly.
It’s because of a missing wp_head() function, which provides the ability for plugins to include stuff in the header. Until last week, I did not know that a function like this existed. I’m currently wrapping up the new version with many bugfixes as well as some new functionality. And yeah, it makes heavy use of AJAX, but that shouldn’t conflict at all with this plugin (or any plugin at all…)
@Alex and everyone else: It was some sort of coincidence that I found your comment. For further questions, please use my site as this is my main source for requests, wishes, error reportings and so on.
Cheers, Christoph
What am I missing? WP 2.01, AutoMeta 0.7, theme Automatic Midnight, which does add some basic title/description data on its own.
I can see the keywords generated in the Custom Field after Save and Publish, but not in the source code. No keyword metadata at all? http://rickleonard.com
how do I remove the technorati tags from pages like this?..
http://www.solaceincinema.com/2006/03/31/bad-bad-films-coming-your-way/
at the bottom of the page,
I want to keep them in the meta but remove them visually….
Added the plugins, off to blog about it and see what happens.
Oh, BTW, some of the clearest plugin installation instructions I’ve ever read.
Suggestion: Right now one has to save the post before actually publishing it. If there’s anyway you could get the plugin to do it’s work when a post gets published, without having to save it, that would be useful for lazy bums like me.
Hi Alan, good question – I’ve added it to the FAQ.
Great plugin — thanks!
One thing (which I may have missed the correct procedure for) is that I’d like to be able to use phrases. When I hand input them into the meta form on the blog entry, I can connect them using “+” symbols. In the outputted entry, in my inline Technorati Tags the + symbol gets stripped, but it shows up in my meta keywords tags; I’d sure like this to be the other way around.
Any tips for what I’m trying to do?
Hi Jesse, can you give me an example of some tags you’d like to be able to use; then I can have a more effective poke.
Thanks, Rich.
I just looked at your source for this page, and it seems to be doing what I want to do (bar the + symbol, which I’m not entirely sure is necessary.)
You use the phrase “technorati tags” – how did you input that in your list on the meta update text field in your wp-admin?
Good question – adding it to the FAQ.
Thanks for adding that to the FAQ, Rich. But the weird thing in my install, it still properly strips the “+” sign out of the inline Technorati Tags, but leaves them in the hidden meta keywords. Wonder why that might be happening…
I had a problem with this plugin that was really frustrating me for quite a while: some of my tags would be duplicated, despite the obvious steps that were taken within the plugin to eliminate duplicate tags. Turns out that the solution was to add checking for backslashes in the $autometa_quotes array, i.e. added “\\”. Problem solved!!
BTW, thanks for this plugin! It saved me the time of porting over my popular MovableType MTKeywords plugin — and it does almost exactly the same thing! I kinda miss the functionality of including high-frequency bigrams, though.
)
hint, hint…
Sorry for all the posts! I just solved my problem with “Warning: Invalid argument supplied for foreach()” message in my RSS feed: in your copy of the getTagArray function, swap the “$result = array();” and “if ($tagarrays) {” lines — I believe they are lines 242 and 243. The problem is that $result sometimes isn’t defined and the function doesn’t return an array object…
Thank you for designing this plugin. I just completed my first wordpress theme and I’m making it a resolution to update my new blog every single day. Plugins like this will save me a lot of time that I can devote to writing good posts. Ofcourse I’ll still hand edit or finish off my best posts, but for an average update auto tags seem GREAT. Thanks again.
great plugin!
my thoughts:
instead of generating tags by some algorithms or what ever why don’t use a list of ‘my tags’. So everybody could edit his own list of tags that are matched against the post content. That would be great and you don’t have to edit tags manually anymore!
thanks!
It doesn’t write a tag for the front page, only archives. it is suppose to work this way?
How was this sorted out – because this is exactly what I would like to do rather than have a list.
Thanks,
I like this a lot.. I think it helped google recognize my site, I just wish there is a button that would show all the meta tags in all the pages. like you click this, you see tags per page. if you click this you see tags for the whole site.. etc etc..
that way theres gonna be more information. and people using it will be more comfortable cuz they see its effects. thanks for working on it
Thanks for Developing the plug-in, it’s saved me some time with Custom Fields. Seems to be working great.