ArticlesForumDownload AboutContact

boakes.org

nice of you to drop by. tea?

Tags: Releases, WordPress

AutoMeta: Automatic Meta & Technorati Tags for WordPress

November 17th, 2005, by Rich.


Warning: apache_lookup_uri() [function.apache-lookup-uri]: Unable to include '/pics/2005/autometa/technorati-logo' - error finding URI in /home/www/boakes.org/htdocs/mods/plugins/boakes-depicticon.php on line 65
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:

  1. Download this fileDownload 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
  2. Unzip the file and copy it’s contents to your /wp-content/plugins/ directory (so that it’s path is /wp-content/plugins/autometa/).
  3. Enable it on the plugins page.
  4. Look for the AutoMeta menu which appears on the plugins page once the plugin is enabled.
  5. Click the “Add the index” button to create the necessary indexes.
  6. 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.

The Autometa custom field showing the auto-generated tags.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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!");?>
  5. 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.
  6. 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.
  7. 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:

  1. default set of metadata/tags for use in non article pages
  2. a better admin interface
  3. user editable tag list length
  4. user editable the minimum word length
  5. user editable stop list
  6. thesaurus lookup, so similar words could be group scored
  7. Optional Visible/Invisible technorati tags
  8. 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).

428 Responses to “AutoMeta: Automatic Meta & Technorati Tags for WordPress”

Pages: «123456789101143»

  1. 31
    Andy Says:

    The plugin is adding tags now on the latest build of WP, but it still displays the error.

  2. 32
    ryan Says:

    Having said that, you can add tags to old posts - just edit, and save the post, and the autometa plugin will spot that there are no tags, and add them for you, leaving you free to improve them by hand.

    I do this, but when I view the source on my post the meta tag is nowhere to be seen.

    What would be the best way to go back through 150 posts and add the tags?

  3. 33
    Rich Says:

    Hi Ryan, looking at the site I can see the meta tag constuct correctly on every article, so it’s definitely installed and working. Also, I can see two of the articles have tag content, which looks like it’s generated by the plugin. So can you clarify what “nowhere to be seen” means (i.e. do you mean that the meta keyword tag “content” field is empty)?

    As for going through “previous” posts, if anyone would like to submit a patch for a convenience interface then that would be useful. In the mean time I recommend using a tabbed browser such as Firefox - once you’re in the “Manage | Posts” section you can use the middle mouse button to edit multiple posts at once. This can significantly speed the process of tagging your existing articles.

  4. 34
    Ryan Says:

    Thanks for the prompt reply. Sorry, I managed to fix what I did shortly after posting that. It looks to be working now. I went through a few old posts but find it to be pretty daunting task. I’m content just having different meta tags to make sure google doesn’t think I have dup content. How does the Technorati part of this work exactly?

  5. 35
    David Burrow Says:

    So, I’ve installed the plugin and enabled it, and a first glance it seemed to work correctly, except now that I’m looking at it, I’m seeing really weird things. There’s only output from the plugin in two places:

    1)The meta keywords for the first post on the index page show up before the first post, as I would expect, but they only show up for that post, no subsequent posts show any autometa output for the meta keywords.

    2)The technorati tags for the last post on the index page show up after the last post, at the very end of the code, but they only show up for that post, no subsequent posts show any autometa output for the technorati tags.

    I use a modified index.php for the default them so that I can have a collapsible comments section on the post on the index page, so that might be causing the problems, or I could just be misunderstanding how it is intended to work. Should all of the posts displayed on the index have both keywords and technorati tages?

  6. 36
    Kickass Says:

    The good news- installed it and it worked quite nicely. Easy install, simple use, I like it.

    The bad news- Since the Jagger update hidden text using css is a huge no-no, and when I looked in source and saw how that was handled . . . ooh no. Deactivated.

    Any way you can get rid of that? Any way we can put the tech tags in the template where we want them AND visible? Oh, and why just a keyword meta, where’s the description meta?

  7. 37
    Croak Says:

    I was working fine with WP 2.0 RC2, until I installed the 12/14 nightly build. Now I’m getting the “Warning: Invalid argument supplied for foreach() in MyURL/wp-content/plugins/autometa.php on line 169″.

    I tried using 0.4b, no luck, and no tags. Any help would be appreciated.

    And Kickass, you might want to try something like Ultimate Tag Warrior if you want your tags to display. Me, I didn’t want to clutter my posts up with a geeky tag cloud or a line of tags (but wanted Technorati to have something to eat), so I loved the fact that Autometa did invisible tags, and really didn’t care if Google lowered my PR, since it was non-existant anyway. ;)

  8. 38
    Rich Says:

    David, the plugin is behaving as I’d expect it to, you’ve identified something that needs improving. The way I use WP is that the index page is JUST an index, and you have to click on the story to read it. Other people use the index page to display several stories. The plugin was designed for the second kind of usage.

    Kickass, the technorati tags are not intended for Google, they are intended for Technorati, that’s why they’re hidden. A future version could include a set of tick boxes in the admin page which woudl add technorati tags to the sidebar or add a function that woudl output them on demand. I’m too short on time to do this right now, but patches are always gratefully received.

    Croak, there’s no reason for Google to lower your PR because you have hidden links. What they almost certainly will do is not increase the rating of the page you’re linking to.

  9. 39
    Croak Says:

    Rich,

    Any idea what changed in WP’s 2.0 RC2 nightly build that’s causing my error listed above?

    “Warning: Invalid argument supplied for foreach() in MyURL/wp-content/plugins/autometa.php on line 169″.

  10. 40
    Ferdinant Says:

    Does this plugin also works with version 2.0 of wordpress?
    I upgraded but received an error while opening my website

Pages: «123456789101143»