Skip Navigation

[Closed] Exporting and (re)importing posts and relationships

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.32 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 2 voices.

Last updated by Shane 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1657217

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Catriona,

I believe this may be easier to do with just the wordpress default backend because you will need to understand a bit of the ID's for all your taxonomies that the National Listing posts are attached to as well as the ID's of the Parent post type.

For example I have a relationship record below in my XML file.




<wp:meta_key><![CDATA[_toolset_associations_owner-hotel]]></wp:meta_key>
<wp:meta_value><![CDATA[<em><u>hidden link</u></em>;


Note that you see the post_type = owner, this tells me that the related post type is called Owner and the Post it is related to is the post with id 350

So when you export All your National Listing it will have the data that is relative to that Post Type, this means the relationship and taxonomy data is going to be in the XML file for you to be able to modify it.

An example of the taxonomy would look like

<category domain="category" nicename="articles"><![CDATA[Articles]]></category>
		<category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category>

Where the domain will be the name of the taxonomy and nicename will be the term and ![CDATA[Articles]]> will be the frontend name.

So if you're changing the post from one term to another then you will need to change the nicename to the slug of your term, in my example the slug is 'articles' and the name is 'Articles' .

The find and replace will work but then you will need to know the data itself that you want to change and the information on the new data to be added.

Please let me know if this helps or if further clarification is needed.

Thanks,
Shane

The topic ‘[Closed] Exporting and (re)importing posts and relationships’ is closed to new replies.