Skip Navigation

[Resolved] how can i export posts content in xml on a specific pattern

This support ticket is created 6 years, 4 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.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1076007

Can you please guide how can i integrate mydesktop CRM with it. ?
Is there any option to export all latest added content from a post type and placed in specific folder.
Is there any option to import latest xml from a specific folder and associate it with the custom posts and their custom created fields? ( please note this job suppose to run every hour or so)

can you please guide possibility ?

#1076099

Hello,

There isn't such a built-in feature within Toolset plugins, it is possible with some custom codes, for example:
1) You can use wordpress function wp_schedule_event() to register your custom CRON job
https://codex.wordpress.org/Function_Reference/wp_schedule_event

2) The CRON job function, all latest added content from a post type
https://codex.wordpress.org/Function_Reference/get_posts
And get the custom fields values
https://codex.wordpress.org/Function_Reference/get_post_meta
and output it as XML file, and put it into the specific folder
hidden link
hidden link