• Resolved tjwise

    (@tjwise)


    I’ve written a custom recipe importer (we built our family recipe page ourselves in Drupal years ago. Bringing it into wordpress world). Got everything working, but one enhancement you might consider is maintaining the original post_date during import. I tweaked WPRM_Import_Manager::import_recipes to copy over the post_date and post_date_gmt to the sanitized $recipe.

    Thanks for an awesome plug-in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brecht

    (@brechtvds)

    When you add the recipe shortcode to its parent post and then save that post it will automatically take over that date, so this should automatically happen somewhere in the import process.

    Brecht

    Thread Starter tjwise

    (@tjwise)

    You are correct with that statement. However, there is no place in the plugin, or in any of the importers, that a post_date is actively pulled or maintained from an import source. Since, in my case, I was pulling recipes from a source that was not a wordpress resource (Drupal), there was no existing post to take over. When wp_update_post is called, it will end up creating a new post with current date/time.

    So, my case may be unique and not worth a change. No problem. Thanks again for a great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Maintaining the post_date’ is closed to new replies.