Currently our site’s videos are posted as custom post type. We have totally changed the theme and added so many new features. For our new site we are trying to change videos to category. (Custom post type to normal categories). Is this possible. I have exported the custom post type as XML file, but I don’t know how to change it to categories.
Leave a Reply
You must be logged in to post a comment.
Finally an answer. Before I start These are the conditions I’m using.
Step Zero: BACKUP my sql BACKUP
First create a the video category in the default posttype. Note it’s ID (it is found in the category edit page in the url under
tag_ID
. I’m assuming ID 4 in my examplesSecond we assign this category to the video posttype with the following Sql:
Next we assign the existing custom categories as children. You need the video category slug, found on the custom-category page agian in the url with
taxonomy
.The last step is assigning the normal posttype to the custom posttype.
Now it should be done and everything should be merged. So TEST TEST TEST.
After that the code making the posttype can be disabled.
This should work, if you have questions just ask.