How to Convert WordPress Custom Post Types

Updated on

If you’re a photographer migrating to a WordPress-powered website, creating photo galleries as either Posts or Pages can be unintuitive.  You will probably be looking for a Gallery menu item on the left side of your WordPress Dashboard.  I know I sure would be.

Well, you can stop looking, because it doesn’t exist.

By default, you must post photo galleries as either a Post or a Page.  Thankfully, WordPress 3.0 introduced the ability for theme and plugin developers to create new custom post types (Galleries, Events, Workshops, etc.) with relative ease.  Each of these new custom post types can also have specific input fields beyond just the Title and Content (default WordPress Post and Page setup).  Both themes and plugins can register new custom post types in WordPress.

But what happens when you switch themes?  What happens to all the galleries you added to the Gallery Post Type (a feature that your old theme added to WordPress)?  This is the issue we are going to help you solve today.

The Problem

If your existing theme registers, say, a “gallery” post type and you decide to switch themes, your individual galleries will appear to vanish.  Voila.  Gone.  Nada.  They do still exist in the database, but, that doesn’t help you much.

The Solution

Post Type Convertr is a plugin for WordPress that converts Posts or Pages to a custom Post Type (or vice versa). In addition to this you can also convert from one taxonomy (categories or tags that are specific to your Custom Post Type) to another.  Below is a video tutorial showing how it works:

Common Use Cases

Our Sidewinder photo theme for WordPress adds a new post type called “galleries” to create beautiful side-scrolling slideshows, as seen on the Sidewinder demo site.  If you end up switching themes down the road, you will likely want to keep all the individual galleries that you added to the galleries post type.  You could use the plugin above to convert your galleries to Posts, Pages, or another post type added from another plugin or theme.  Some users might want to use the GPP Slideshow plugin, which adds a post type called “gallery”, after switching to another one of our photography themes for WordPress, like Focal Point.  Please note that the GPP Slideshow adds a post type called “gallery” while Sidewinder’s custom post type is called the plural form “galleries”.  Use the plugin above to convert your Sidewinder “galleries” post types into the “gallery” post type added by the GPP Slideshow plugin.

Suggestions

As always, we’re eager to hear your suggestions in the comments below.  Hopefully it will save you lots of time. Enjoy!

Newsletter
Join over 280,000 independent website owners

The next person to join our monthly newsletter gets a 25% off coupon!

We guarantee 100% privacy. Your information will not be shared.

This entry was posted in Blog. Bookmark the permalink.

Posted by , at Graph Paper Press

Thad is the founder of Theme.Works and Graph Paper Press. Previously, he produced online multimedia and documentary projects for USA Today including the inauguration of President Barack Obama and many others. He lives in Brooklyn, NY with his wife Abby.

  • Google
  • Blog
  • Instagram

14 thoughts on “How to Convert WordPress Custom Post Types”

  1. <!–
    /* Font Definitions */
    @font-face
    {font-family:"Cambria Math";
    panose-1:2 4 5 3 5 4 6 3 2 4;
    mso-font-charset:0;
    mso-generic-font-family:roman;
    mso-font-pitch:variable;
    mso-font-signature:-1610611985 1107304683 0 0 159 0;}
    @font-face
    {font-family:Cambria;
    panose-1:2 4 5 3 5 4 6 3 2 4;
    mso-font-charset:0;
    mso-generic-font-family:roman;
    mso-font-pitch:variable;
    mso-font-signature:-1610611985 1073741899 0 0 159 0;}
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;
    mso-font-charset:0;
    mso-generic-font-family:swiss;
    mso-font-pitch:variable;
    mso-font-signature:-1610611985 1073750139 0 0 159 0;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-unhide:no;
    mso-style-qformat:yes;
    mso-style-parent:"";
    margin-top:0in;
    margin-right:0in;
    margin-bottom:10.0pt;
    margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    .MsoChpDefault
    {mso-style-type:export-only;
    mso-default-props:yes;
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:Calibri;
    mso-fareast-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    .MsoPapDefault
    {mso-style-type:export-only;
    margin-bottom:10.0pt;
    line-height:115%;}
    @page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;
    mso-header-margin:.5in;
    mso-footer-margin:.5in;
    mso-paper-source:0;}
    div.Section1
    {page:Section1;}
    -Very helpful and attractive post made by you. It contains very nice information but i have a problem please help do you can we convert our wordpress web site to a social media web site or not.

  2. Very helpful and attractive post made by you. It contains very nice information but i have a problem please help do you can we convert our wordpress web site to a social media web site or not.

  3. Wow! I’ve spent hours, yesterday, moving my categories to some new taxonomies.
    Today I’ve created a new taxonomy and I needed to move all my tags to this new taxonomy (hundred of terms, abound to existing custom post type).
    I’ve found your plugin while looking for something completely different: you saved me hours of manual job!

    The only missing feature (that I didn’t need in this case, but me or other users may need in the future) is being able to exclude some terms from being converted.

  4. Hey!
    I want to change this custom posts, on my website to NORMAL posts. Is that also possible? Look at my website: http://parkerenbijschiphol.net/

  5. One way to avoid this issue in the first place is to add the Custom Post Type through a custom functions plugin rather than the theme. This way, if you ever change themes the custom post type stays with you.

  6. This would be helpful to me if I could filter the posts to convert. My old theme had no custom post type and the new theme requires a “portfolio” type. If I use this plugin, however, I would end up with all my regular blog posts converted to portfolio.

  7. The Convert Post Types plugin is the best plugin for converting and changing post types in bulk. This plugin allows you to change post types by category and tag as well 

  8. Thanks for the information! I have been challenging taxonomies  for hours, and now everything’s so clear! I admit that this plugin is probably the best one to be found out there, and I really appreciate your sharing the tips. I’m now working on my new project called free winrar
    http://freearchiver.net/ and your assists will definitely help me to  finish it.

  9. This is Angle from a manufacturer specializing in producing Cheapcargos in China. We have been in this industry for over 10 years,please have a look at our website: http://cheapcargos.com. you will find there are many products same as the ones you displayed. Anyway, you could find some other items which you can also put on your market. Any inquiries on the Cheapcargos please do not hesitate to contact us.

Leave a Reply