• Per Mattsson

    (@miunpermattsson)


    Hi there, I’m about to to try to write a plugin that will import posts frpm CSVs and/or XML files.

    That are other plugins that accomplish this in various ways but still I believe there’s a place for this.

    What I’m after is to import single posts using a form.

    The form would send the usual fields like post_author, post_date, post_content, post_title, post_excerpt, post_status, post_name but sometimes some images to make a post.

    The form itself can live inside a plugin structure or on a separate page outside of the WP files but my guess is that a plugin-thing is the best approach here.

    I can do imports of files (CSV, XML etc) but the plugins I can use there are to tedious to use for imports of single posts. This is an approach to do the import easier and faster.

    So why am I writing this here?
    I first need some advice for the bit that involves the form.
    Is there something built in that takes care of sending the content to the DB or is it maybe a better approach to access db directly and create the posts there?

    What happends if an install of WP has made use of custom fields?

    regards Per Mattsson

    • This topic was modified 8 years, 3 months ago by Per Mattsson.
  • The topic ‘Post importer – need advice’ is closed to new replies.