Support » Plugins » Hacks » Custom Taxonomies – Conversion and Filtering?

  • Hello,

    I have an existing blog with hundreds of post. I’d like to retroactively introduce custom post types and taxonomies.

    I have a very elaborate (and difficult to use) categorization scheme that should make this easy to do if I could just mass convert posts under a given category to a custom post types or custom taxonomy. (This is because different content types get their own categories [article, video,] as do different taxonomy types [people, places])

    I’ve already created the custom post types and taxonomies that I need using the plugin custom post type ui.

    The first step, changing the post type of certain posts, is easy to do by using the convert post types plugin. (It allows you to change the post type of posts under any category, which fits my needs perfectly.)

    The second step, converting certain categories to custom taxonomies (say, a family of categories about politicians to a “politicians” custom taxonomy family) is proving to be bloody impossible. There doesn’t seem to be a category to custom taxonomy converted plugin out there, despite the obvious need for one by anybody looking to to apply WP3.0’s CMSing innovations to an already existing blog.

    I’ve tried dicking around with the wp_term_taxonomy table in the WP SQL database. If I manually change the “taxonomy” field of different terms – from category to politicians, a custom taxonomy – all posts under that (former) category reflect the update. If you try to edit a post, the custom taxonomy meta-boxes display the right term. (I haven’t tried writing a custom loop to see if the posts would display on the site, so I don’t know if that works.)

    The first problem is that if you go to the custom taxonomy page (the equivalent of the “category” or “post tags” page under posts,) none of the terms show up in the table at the right. If you SEARCH for them, though, they do show up. (Is there some other file that has to be edited

    The second problem is that creating a custom taxonomy and associating it with posts (or any custom post type) doesn’t generate a filter box on the view posts page. This makes custom taxonomies pretty much unusable.

    Does anybody have ideas on how to convert categories to custom taxonomies and how to add a taxonomy filter on the posts page?


  • The topic ‘Custom Taxonomies – Conversion and Filtering?’ is closed to new replies.