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.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/create-a-page-by-importing-data-from-an-xml-file-on-clicking-a-button-inside-admin-options-page/">

Create a page by importing data from an XML file ( On clicking a button inside admin options page)</a>
0
, , Latheesh V M Villa 10 months 0 Answers 58 views 0

Leave an answer