• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Content Modeling for WordPress
    • WordPress Hidden Gems
    • Web Design
  • Work
    • Presentations and Interviews
    • on GitHub →
    • MLIS Class Projects (2019-2022)
    • Portfolio (2002-2019)
    • WordPress Plugins

Stephanie Leary

Writer, Front End Developer, former WordPress consultant

  • About
    • Press Kit
    • Presentations and Interviews
  • Contact Me

New plugin: Convert Post Types

June 30, 2010 Stephanie Leary 19 Comments

I’m moving some old posts over to a new post type now that I’ve upgraded the sites at work to WordPress 3.0, and I needed a way to convert hundreds of posts in a category. The Post Type Switcher plugin does a nice job, but only on one post at a time. So, I wrote my own: Convert Post Types.

This is a utility for converting lots of posts or pages to a custom post type (or vice versa). You can limit the conversion to posts in a single category or children of specific page. You can also assign new taxonomy terms, which will be added to the posts’ existing terms.

Download Convert Post Types wordpress.org »

Convert Post Types options

WordPress Plugins

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Reader Interactions

Comments

  1. JeremyT says

    June 30, 2010 at 2:07 pm

    Oh, I can see this being very useful with the upgrade to WP3.0. Thanks!

    Reply
  2. Ryan says

    July 9, 2010 at 3:24 pm

    It save me a lot, very useful. Perhaps WP Dev should make it to the core. Thanks for the plugin!

    Reply
    • steph says

      July 9, 2010 at 4:19 pm

      Glad you like it!

      Reply
  3. Kai says

    July 19, 2010 at 5:43 am

    Hey, great work. saved me a lot of work.

    Reply
  4. Rein says

    November 7, 2010 at 8:47 am

    First of all great plugin, saved me a lot of time, and i hope it’s going to save me a lot more time in the future :)

    One problem: I’s not converting pages, well it says it does but if i’m am trying to convert all pages to a custom post type it says it’s done (no list of pages names is shown) but it does nothing..
    For posts it works fine!

    I am running WP 3.0.1
    Any solution?

    Reply
  5. Christopher Wulff says

    December 16, 2010 at 11:34 pm

    Hi Stephanie,

    I was just wondering if you were considering updating this awesome (!) plugin to handle conversions to post formats when 3.1 goes live. I have a site with all of my client’s tweets stored as posts in a category, but would love to change them all over to the status format instead (and would prefer to avoid going one by one on several thousand).

    Thanks for all your work. Cheers!

    Reply
    • Stephanie says

      December 21, 2010 at 3:53 pm

      Very likely, yes.

      Reply
      • pokes says

        January 21, 2011 at 4:08 am

        3.1 imminent, is it correct that you have a an updated version of Convert Post Types ready for when it appears?

        Sorry for chasing but I have 200+ pages waiting to be converted:-(

        Reply
  6. Antonio Fernandes says

    February 26, 2011 at 3:11 am

    You just saved me alot of time, thanks

    Reply
  7. Adam Forster says

    May 3, 2011 at 12:13 am

    Great little plugin there, saved me a lot of time on a site revamp.

    Reply
  8. Mark says

    September 10, 2011 at 11:21 pm

    Any idea if this works with WordPress 3.2.1? I really need a plugin like this to convert a few hundred posts to a new custom post type and I’d rather not hose my db.

    Thanks!

    Reply
    • Stephanie says

      September 12, 2011 at 10:27 am

      Yes, it works with 3.2.1.

      Reply
  9. Brett says

    September 15, 2011 at 2:31 pm

    Is it just me, or do all custom fields get lost during this process…? Maybe these additional queries aren’t a part of this plugin. Thanks for a fantastic tool. Please clarify if you can to save me and others from discovering what I think I just did. No custom fields?

    Reply
  10. Christian says

    December 18, 2011 at 10:41 am

    I’d love this plugin, if I could set it up running ;)

    I’m using WP 3.3 and have to change a mass of posts into a custom post_type. But an error occures and nothing is done :(

    Fatal error: Cannot redeclare bulk_convert_posts_add_pages() (previously declared in /www/htdocs/xxx/wp-content/plugins/convert-post-types/convert-post-types.php:15) in /www/htdocs/xxx/wp-content/plugins/convert-post-types/convert-post-types.php on line 17

    Is it me or has this something to do with the new WP 3.3?

    Reply
    • resa says

      January 12, 2012 at 10:20 pm

      I have the exact problem like you..
      any workaround please ?

      Reply
    • Joseph says

      January 16, 2012 at 3:02 pm

      I’m getting the exact same error. Using WP 3.3.1. Too bad, because this is possibly the exact solution I need.

      Reply
  11. abid says

    March 31, 2012 at 12:24 am

    you saved my day really. i was finding trouble to post pages in my 2 site acmepanel and microearning. Thank u. hope to hear new tips from u

    Reply
  12. Andrea says

    November 30, 2012 at 5:50 am

    Potentially useful plugin, if it wouldn’t have truncated all my post contents to the first few characters.

    Reply
  13. Andy says

    March 3, 2013 at 8:00 pm

    Thank you for making this! I just ran into a similar situation and was dreading having to write a plugin to convert all the posts when I’m already short of time.

    Your awesome!

    Reply

Leave a Reply to JeremyT Cancel reply

Your email address will not be published. Required fields are marked *

Footer

My Books

I’m a front end developer at Equinox OLI, working on open source library software. I was previously a freelance WordPress developer in higher education. You can get in touch here or on LinkedIn.

Copyright © 2025 Stephanie Leary · Contact