Create a page by importing data from an XML file ( On clicking a button inside admin options page)
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.
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.
No category, no tags or the custom fields are being imported.