Skip to content

Instantly share code, notes, and snippets.

@joemaller
Last active December 16, 2023 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaller/19cc68ad2a3ed715d895fdb9944840d7 to your computer and use it in GitHub Desktop.
Save joemaller/19cc68ad2a3ed715d895fdb9944840d7 to your computer and use it in GitHub Desktop.

News to Posts Migration

  1. Update the iop-theme to >2.28.0
  2. Update iop-data-model to >0.4.0
  3. Delete all existing Posts in wp-admin
  4. Change all News posts' post_type to Posts in phpMyAdmin:
    UPDATE `wp_posts` SET `post_type` = 'post' WHERE `post_type` = 'news';
  5. Update permalink Custom Structure to /news/%postname%/
  6. Create a new Page named News
  7. Set the Posts page in Settings->Reading to the new News page
  8. Add the News page to the main menu and footer nav menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment