Autotagger

WordPress plugin for automatically tagging posts using a predefined tag list.

Autotagger

Description

Compare words in a predefined tag list to words in a post, and tag the post with the matching words.

  • Use a predefined tag list to autotag posts with matching words while saving/publishing.
  • Re-tag entire database with a single click, making use of the Append or Replace (or neither) option.
  • Hook into Autotagger via the action ‘tag_posts’ and use the predefined tag list to tag all posts without tags in the blog’s database.
    This is useful to set up on a schedule if posts are regularly made without tags (eg. a script that adds posts directly to the database bypassing the WordPress API).

Download

Download: Autotagger 2.1 ( Tested up to WordPress version 2.5.1 )

Installation

  1. Unzip ‘autotagger.2.1.zip’ and upload the ‘autotagger’ folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Configuration

  1. Go to the ‘Settings’ menu and click on ‘Autotagger’, and add your desired tag list.

History

  • Jul. 24, 2009 – ver. 2.1 : Added options to use post titles and post categories as tags.
  • Nov. 27, 2008 – ver. 2.0 : Added Append/Replace Tags option. Added ‘Autotag All Posts’ management page.
  • Oct. 2, 2008 – ver. 1.1 : Added option to include/exclude Pages from autotagging.
  • Sept. 1, 2008 – ver. 1.0 : Released.

Screenshot

Autotagger Settings

Autotagger Settings

Autotag All Posts

Autotag All Posts

23 Responses to “Autotagger”

  1. magicmeg said

    Hi there,

    I’m actually useing this because I have issues with Simply Tags not working with some of my plugins. This plugin works with everything which is great!

    Can I request an addition to your plugin though, don’t worry if not. I would like to stop the plugin from tagging pages in WordPress, or maybe an option to include/exclude pages. Is this possible?

    Maybe just the code change would be great too so I could make the change myself…

    Anyhow, just to let you know I use loads of plugins in my blogs and this one has worked 100% with them all!

    MeG

  2. Jeff said

    Thanks for the feedback 🙂
    Sounds easy enough; I’ll see what I can do.

  3. promedbilling said

    I agree, there should be an option box to choose whether or not you want it to tag everything, static pages only, or blog only. (If you do blog only it should work even if your blog is not your home page).

    Because if you use a add on that uses your tags as your keywords it really messes it up when autotagger re tags your static pages. You have to go and manually change the tags for each one.

  4. Jeff said

    As of version 1.1, Autotagger only autotags Posts by default (ignoring Pages). You have to tick the ‘Include Pages’ checkbox on the Settings page if you want Pages autotagged as well. Is this not sufficient? The only scenario this doesn’t cover is the person who only wants Pages autotagged – which doesn’t seem all that useful to me.

    Also, Autotagger should not be “re-tagging” your posts/pages. It should be ignoring posts/pages that already have tags; is this not the case for you?

  5. promedbilling said

    Well that explains the problem. I only have version 1.0. The update feature never popped up and told me there was a version 1.1. So for me, my static pages did not have tags and it went and made up tags for them. Then my SEO mod (Headspace 2) took those tags and changed my keywords to them. There was no ‘Include Pages’ checkbox. The only thing on the options page was just to add tags.

    Did you not post 1.1 on wordpress? Usually the auto-updater tells me when there is an update. I don’t manually go looking for updates.

    If that box is 1.1 that should work great then.

  6. promedbilling said

    Actually is there any way to put the tags on a static page in a specific order?

  7. promedbilling said

    Autotagger is sorting the tags alphabetically after you add them. That is a negative thing because with website SEO you want your main tags listed first. Can you make it so it either does not auto sort tags alphabetically (or make it an option), or make it so on the Manage Page area you can manually move them in the order you like and save them in that order?

  8. Jeff said

    Unfortunately, Autotagger isn’t listed on WordPress.org. I submitted it almost 2 months ago and never heard anything back 😦 The submission form won’t allow me to re-submit it either, so maybe they’re just really backed up or something?

    I’ll take a look to see what (if anything) can be done about the tag sorting. I know that Autotagger doesn’t intentionally sort the tags. I can also see that even without any plugins activated, WordPress is sorting the tags alphabetically… so it might be out of my hands :\

  9. whalespine said

    Nice work. I’ve added an option to include the existing tags in the database in addition to the list of tags entered via autotagger in the list of tags to look for in the post. See http://whalespine.org/wp-content/uploads/autotagger.php.txt for the modified version.

  10. rcain said

    hi,
    firstly, this a great plugin – thanks! 🙂

    however, i have recently experienced an issue with the maybe_unserialize() when called by the autotagger plugin (v2.0). i am using wp_mu 2.7 – think this uses the same wp-core version 2.7.

    the plugin was expecting an array returned, but now (for some reason that i have yet quite to fathom), it has suddenly decided to return some other data type.

    in my case, this happened after i performed what i thought had been a successful data migration between dev and live environments. my suspicion is that somehow during the transcription i (slightly) corrupted the wp-option value stored, hence triggered this issue.

    however, there seems to be some slightly suspect/ambiguous code in autotagger.php itself at line 87

    $tags = maybe_unserialize(get_option('at_tags'));

    whereas elsewhere it is called with an explicit cast to array type – eg:

    $tags = (array)maybe_unserialize(get_option('at_tags'));

    the first method (code point) causes the ‘master’ tags list not to be displayed on the admin settings screen.

    i’ve also added to an existing recent report of the different?) behaviour of the maybe_unserialize functoin on the wp forum – http://wordpress.org/support/topic/258044?replies=2#post-1049164- a seemingly related (wp 2.7) issue with a different plugin.

    has anyone else exprerienced similar?

    • rcain said

      i know this is YEARS later, and things have moved on, but this problem recurred when the site admin tried to update tag list again. however, i found the problam and solution i believe:

      there should be NO NEED to call the maybe_serialize and maybe_unserialize functions at all – update_options and get_options functions call them automatically anyway. therefore i think under some cicumstances it was being serialized twice – ie. a nested serialize/unserialize.

      just replace any occurences of update_option('at_tags', maybe_serialize($tags));
      with update_option('at_tags', $tags);

      and correspondingly replace any occurences of $tags = maybe_unserialize(get_option('at_tags'));
      with $tags = get_option('at_tags');

      … and all works fine and reliably.

      hope this helps someone else.

  11. Jeff said

    however, i have recently experienced an issue with the maybe_unserialize() when called by the autotagger plugin (v2.0). i am using wp_mu 2.7 – think this uses the same wp-core version 2.7

    I’ve only tested this up to WordPress version 2.5.1, as that is all I use at the moment. Sorry.

  12. bydesigngames said

    It has been 6 mo since the last comment here.

    Is this plugin working with WP 2.9.1? I install it to Plugins but it doesn’t show up in the list of plugins in WP Admin.

    Sounds like this is just the solution I was looking for! :O

    • Jeff said

      I’ve only used AutoTagger on blogs up to WordPress version 2.5.1 and don’t have any immediate plans to upgrade it. Sorry.

      • bydesigngames said

        Have you considered releasing the code so that others may pick up where you left off?

        I know the PHP is available, but the license is currently not 🙂

      • I don’t mind at all if you make changes. It would be great if you posted any changes here, for others.

        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program. If not, see http://www.gnu.org/licenses/

  13. majestic122 said

    Hi Jeff..

    It’s strange the they have not listed this on the wordpress plugin directory…

    I am strugglign to get the plugin to work but if people knew how powerful it could be they would be blown away.. reason being…

    I am trying to get it to work in conjunction with the All in one Seo plugin..

    The all in one adds keyword metatags from wordpress tags, if your plugin can create spot SEO tags and the “All in one plugin” uses them for meta-tags then this is a “POWERFUL” combination… , I would imaging there would be a huge amount of interest in your plugin..

    I am using wordpress 2.9

    Loaded some keywords and pressed to update all posts and pages, nothing happened. I went into a couple of posts and it says autosave has a new version of your post.. I updated 2 posts and the tags were added… spot on seo’d tags..

    Went back to the plugin and updated again however this time the rest of the posts did not have tags…??

  14. majestic122 said

    Jeff.

    It seems to be that I can activate the plugin to add the tags, then have to go in and manually update the post. This then does indeed add the tags, and..

    The All in one SEO plugin uses them for the meta keywords.. BRILLIANT!

    My problem now is how to update all my posts, I have 2000 or so so need to find a way to do this in one go…

    I will upadte here if I can find a way..

    Kindest regards David

  15. Julie Wolf said

    Jeff are you still watching this?

    I have a bug that is adding the word or tag “Auto-draft” to some of my posts and pages. I do not have this tag in my settings. Any suggestions to make this stop? http://incomeassurance.com/blog

  16. Diego Mattarocci said

    feature request:
    tranform in tag title word by word: only IF longer than X characters
    maybe starting with 4 or 5 char will be fine

  17. Hi

    Obviously this is not a plugin that gets updated anymore but it suits my needs for a new site – the only problem is that it doesn’t seem to execute on a cron schedule. I had it working on XAMPP locally no problem but just not on a hosted setup. I’m speaking to my host provider about it but has anyone else experience any similar problems with it?

    Thanks!

  18. Michael4fm said

    Thanks for this great plugin. A suggestion for you to consider if you’re bored and want to add new features … I’m using it just for the ‘category as tag’ element … would be good if I could specify one (or more) category to EXCLUDE from the convert category to tag process.

Leave a comment