GeoDirectory SupportMerging two Custom Post Type Tables – GeoDirectory Support https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/feed Tue, 17 Mar 2026 12:57:59 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-30940 <![CDATA[Merging two Custom Post Type Tables]]> https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-30940 Sat, 14 Feb 2015 23:22:30 +0000 Russell Initially I thought it a good idea to separate my data into 2 exactly the same CPT.
They have mirrored categories (slightly different names) and each has the same structure.

However I now realise I need to have this in one single post type (the default places)

I have tried exporting from phpmyadmin editing and re-importing into the default table but with no joy. Can anyone point me in the right direction to try and export the data from my custom post type into the default places post type??

]]>
https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-30954 <![CDATA[Reply To: Merging two Custom Post Type Tables]]> https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-30954 Sun, 15 Feb 2015 08:37:49 +0000 Guust The simplest I can think of is to export the obsolete CPT table and rework into a CSV file matching the standard upload CSV.
Once you got your CSV file ready, make sure to delete all obsolete listings first completely using WP admin, then delete custom post type. If you leave any before re-importing you will end up with a lot of duplicate names and a “-1” will be appended to the slugs.

I’ll alert Paolo too, he might have brighter ideas.

]]>
https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-31058 <![CDATA[Reply To: Merging two Custom Post Type Tables]]> https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-31058 Mon, 16 Feb 2015 16:18:23 +0000 Paolo I would have suggested the same procedure as it’s the simplest at the moment….

Thx

]]>
https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-31583 <![CDATA[Reply To: Merging two Custom Post Type Tables]]> https://wpgeodirectory.com/support/topic/merging-two-custom-post-type-tables/#post-31583 Sat, 21 Feb 2015 01:21:10 +0000 Russell Interestingly enough I exported the obsolete cpt table from phpmyadmin as csv and made some edits to the rows using find and replace in open office. I also exported the default cpt and copied the data from the obsolete table to the default table to ensure all rows matched. I then imported it into the default cpt table back in phpmyadmin as csv. Did the same with the posts table and it seems to have imported ok with no errors.

For anyone trying this then obviously do it on a backup copy of my database and site.

]]>