I need to create "Import demo content" button on frontend, when the user clicks it, import demo content including attachments. What would be the best way to achieve that?

Import XML somehow? Import db? Create all the content in the plugin manually?


| improve this question | | | | |
  • Have you looked at WordPoress's import/export and wrx files? – Wyck Jun 23 '14 at 22:40
  • I need to do this from code... – user1049961 Jun 24 '14 at 8:16
  • Yes you would write code like the kind you find in the functions above or by looking at a wrx file to see how the format is structured.... – Wyck Jun 24 '14 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.