Site icon Hip-Hop Website Design and Development

Automatically convert standard posts with custom fields to custom post types

I am just beginning a page, and for my current purposes it seems that the only extra things I need are a couple of extra fields for posts of a certain category. Because I only need to add a little information, I think that it might be appropriate to give posts belonging to this category custom fields using Advanced Custom Fields (aka ACF). However, I was thinking that later I might discover it is better to use custom post types, that have the fields built into the structure of the custom post type.

For example, imagine I originally start with normal posts, and I assign them all to the category of “movie”. I give them each post in the category movie the custom field called “director” and populate it with the appropriate director. Then, later, if I want to create a custom post type, that has the field “director” as part of the custom post-type I create called “MovieType”, could I easily transfer the directors in the custom fields for every old “normal post” of category “movie” to be imported to the new custom post type?

I am concerned it might not be easy to export this data to a custom post type later and I don’t want to have to manually copy/paste or enter all the fields from my custom fields to the fields of the new custom post type.

The question: what is the easiest way to convert standard posts with custom fields into a new custom post type, AND to import/keep the data originally assigned to each post from the custom field into the native field of a new post type? Can this be done automatically?

Thanks!