• Our old photography website created before Custom Post Types, using the standard post and multiple categories.

    It is time for a revamp. Is there any way to export the old (standard) posts and their photos, and import them as a specific custom Post Type (like “Portfolio”)?

    Would be grateful for your ideas & feedback.

    Thanks, Peter

Viewing 1 replies (of 1 total)
  • I don’t think you need to export/change/import if you can use a tool like phpMyAdmin. All you need to do is change the post_type of the desired Posts from ‘post’ to the slug of your new Custom Type.

    BACK UP FIRST!

    I tested this by converting one Post to a Custom Post type (that I had already defined and had used) with the SQL below:

    UPDATE wp_posts
    SET post_type = 'parks'
    WHERE post_type = 'post'
    AND ID = 1302

    One caution: I think (but not totally sure) you need to be sure that the new type supports all the capabilities of Posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Export Standard Posts and import as custom post?’ is closed to new replies.