Word Count: 262
  • Post category:Clare Wood (22)
  • Post last modified:2022-05-01

Purpose

Note: the approach in this article could not proceed because both AIO plugin and WPvivid were unable to restore the live CW site on another environment. Another approach is outlined here.

There are over 150 existing podcasts need to be imported to the NEW site.

  • These podcasts are subpages on the current live site.
  • These pages have no category and featured images attached.
  • No custom field to store the Episode number.
  • The newly developed site treats these as post type with category Podcast, and has a custom field to store the Episode number for each podcast post.

Points to note

  • Copy following settings from Live CW to cur-cwood site.
    • Settings in General
    • Settings in Permalink

Main Steps

  • Current live site – Use the already installed AIO plugin to export an image of the site.
    • https://clarewood.com/
  • Set up cur-cwood.innovriver.com cloned with the current live image.
  • Clone the NEW site on tdowebsites to dev.innovriver.com
  • Migrate the podcast pages from cur-cwood to dev.
    • Details in section Export/Import below.
  • Export the posts from dev to the NEW site.

Export/Import

  • On cur-cwood.innovriver, develop a php program to extract the following to a file in JSON format. One file for each podcast page.
    • ID
    • post_author
    • post_date
    • post_content
    • post_title
    • post_excerpt
    • post_status
    • post_type
    • post_name
    • post_parent
    • post_category
    • attached image – the URL should be included in the post content.
  • On dev.innovriver, develop a php program to create new posts using JSON files and the wp_insert_post() function.
  • Use free plugin to import the podcast posts with images to NEW on tdowebsites.com.au