• Resolved golddave

    (@golddave)


    I have an old (very old) tagging plugin for Technoratti tagging (Technorati Tagging by Ben O’Neill, so old there’s no web page for it anymore). With the new tagging feature built into WP 2.3 I want to convert the old tags created by this plugin work with the new feature. The old plugin used the wp_postmeta table to save tags. The meta_key field is set to “technorati” and the meta_value field would carry the tags (comma separated). I don’t know how the new tagging feature works. Does anybody have a solution for how to do this conversion and/or can point me to a place with more info on the 2.3 tagging feature?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter golddave

    (@golddave)

    PS – Each of the records in the postmeta table stores all tags for a single post seperated by a comma. For example:

    meta_key meta_value
    ————————————————
    technorati Chris Baker, Solomon Willcots
    technorati Countdown, Opening Day

    Thread Starter golddave

    (@golddave)

    Any helpers? I’m looking to save 2 1/2 years worth of tags here. Any help would be greatly appreciated.

    Well there are three new Manage->Import features, Categories to Tags, Simple Tagging, and Ultimate Tag Warrior, where you could get some hints on how those are handled.

    Also, the Version 2.3/Developer Power User section has some links to review.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If you look at the importer for Jerome’s Keywords, the “V1” has a method where it gets comma-separated tags from a postmeta key called “keywords” and imports those as tags. You could probably adapt that code to work with your case. Might be as simple as changing the “keywords” to your “technorati”.

    The importer for Bunny’s Technorati tags imports tags, space separated, from a postmeta with a key of “tags”. Change tags to technorati and the ‘ ‘ (space) to ‘,’ (comma) on the explode line, and it will work for you as well.

    Thread Starter golddave

    (@golddave)

    Thanks for the suggestions.

    I have hacked the importer for Bunny and did a test run with mixed results. The importer reports that it has imported several tags but I don’t see any of the new tags in the wp_terms table or in the post (I updated the theme using the_tags to show the tags in the post).

    Either it didn’t really work or I’m missing about the idea of converting old tags to the new built in format. I DO see tags that I add directly to a post but I don’t see the converted ones. I’d assume the importer would move existing tags to the new structure and add their associations to posts as well. What am I missing?

    Thread Starter golddave

    (@golddave)

    Nevermind. This later issue was human error. I didn’t see the next button. After clicking the next button and then the next button on the next page my tags were imported and associated properly. Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Converting Postmeta Records to WordPress 2.3 Tags?’ is closed to new replies.