Create a page by importing data from an XML file ( On clicking a button inside admin options page)

Question

I have used this method to create a custom post page but I want the content to be the imported XML file content to be the content of this file.
https://stackoverflow.com/a/32314726/3697484

I have the XML content as a file saved inside a plugin folder.

I am basically looking for a method to use the WordPress importer function inside an admin options page to automate the process.
– User clicks on the link in the admin options page
= It imports the XML page with it it’s content.

I have no idea if there is a function or API to get it done.
please help

No category, no tags or the custom fields are being imported.

0
, , Latheesh V M Villa 2 years 2019-10-27T03:09:09-05:00 0 Answers 81 views 0

Leave an answer

Browse
Browse