Google Sheet to WP Post migration
This tool able to fetch google sheet data and migrate them into wordpress posts easily.
by Shimanta Das(Abhimanyu Saha Team) · github.com/simantadasweavers/sheet-to-wp-migration
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/simantadasweavers/sheet-to-wp-migration/archive/refs/heads/main.zip*** change logs : change google_sheet_url to sheet_id in production apps. set parent category , child category for posts
/**
* ARRAY MAP
* col-a -> POST TITLE
* col-b -> POST CONTENT
* col-c -> POST CATEGORY
* col-d -> POST TAGS
* col-e -> POST ID
*/
====================================================================================
DUE WORK ==> 17 oct 2024. managing tags, thumbnail image,
WORKFLOW =>
- when migration start, it will insert all the posts into wordpress posts, means overlapping them.
- when no post id in the sheet filled, it will filled them first time.
OK =>
- when no post id on sheet, fresh migration - ok!
- every time migration runs works well.
PROBLEMS =>
- if one post id missing that time updation failed, means it create a new post into db.
===================================================================================
DUE WORK ==> 21 oct 2024.
solved => tags of post during migration
unsolved => thumbnail image,
WORKFLOW =>
- when migration start, it will insert all the posts into wordpress posts, means overlapping them.
- when no post id in the sheet filled, it will filled them first time.
OK =>
- when no post id on sheet, fresh migration - ok!
- every time migration runs works well.
- if postid found then migration updation works well including post title, content, taxonomy(category), tags.
PROBLEMS/RESTRICTION =>
- if one post id missing that time updation failed, means it create a new post into db.
IMPROVEMENT =>
- NO DUPLICATE POST
- SET CRON TIME BY SELECT BOX - 2 , 4 , 6, 8, 10, 20, 30
- SELECT POST TYPE -> custom post type, default -> post, page
- LIST ALL CRONS AND DELETE OPTIONS
=================================================================================== DUE WORK => 22 oct 2024
-
SET CRON TIME BY SELECT BOX - 2 , 4 , 6, 8, 10, 20, 30 = done
-
SELECT POST TYPE -> custom post type, default -> post, page
DUE WORK => 23 OCT
-
LIST ALL CRONS AND DELETE OPTIONS
** PROBLEMS => SELECT COLUMN INDIVISUALLY FOR SPECIFIC ROLE , means -> assuming my self first column for POST TITLE -> assuming second column for POST CONTENT -> third column for POST CATEGORY note: we can't change the ordering by ourselves.
CRON JOB OVERRIDE BY POST TYPES. CONFLICT!
** We should need to maintain the order => POST TITLE, CONTENT, CATEGORY, TAGS, POSTID
DUE WORK => 24 OCT
NEED TO FIX =>
- post category and tags get not linked with post and custm post types.
- settings page default category and tags selection for post type.
- CRON JOB OVERRIDE BY POST TYPES. CONFLICT!
- migration work for default post_type = post but not for custom post types.
DONE =>
- post category and tags get not linked with post and custm post types.
- settings page default category and tags selection for post type.
================================================================================
TEST CASES ==>
- POST ADD , CATEGORY, TAGS
- POST UPDATE , WITHOUT CATEGORY AND TAGS
- POST UPDATE WITH CATEGORY AND TAGS
- POST UPDATE WITHOUT TAGS AND CATEGORY
- DIFFERENT POST TYPES SAME CHECK.
DONE ALL.
PROBLEMS STILL =>
- ONLY CAN SET FOR ONE POST TYPE AT A TIME.
-
IF CRON JOB SET THEN, BEFORE CREATING A NEW ONE IT REQUIRS PREVIOUS ONE DELETION. [REQUIRED PLUGIN: CRON JOBS ARIEL: https://wordpress.org/plugins/leira-cron-jobs/#can%20i%20manage%20wordpress%20schedules%3F]