https://github.com/shaileshdevs/migrate-blogs-using-api
https://github.com/shaileshdevs/migrate-blogs-using-api
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shaileshdevs/migrate-blogs-using-api
- Owner: shaileshdevs
- License: gpl-2.0
- Created: 2022-07-30T16:27:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-31T13:37:29.000Z (over 3 years ago)
- Last Synced: 2025-02-07T18:51:49.172Z (11 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Migrate Blogs Using API
What does this plugin do?
-
* This plugin allows you to import the users as authors and blogs as Articles in your WordPress site.
* It imports the users and blogs from an external site using API.
How does the plugin work?
-
Here is the workflow about how the plugin works:
* The plugin creates a custom post type named as "Articles".
* This "Articles" custom post type has only three fields:
- Title
- Description
- Author
* To import the users or blogs into your WordPress site, visit the submenu "Fetch Users & Articles" [ Articles > Fetch Users & Articles ].
* When you click on the button "Fetch Users", the plugin extracts the data at https://jsonplaceholder.typicode.com/users using API.
* Then, it imports the users into your WordPress site as Authors.
* The following standard WordPress fields related to user are populated by this plugin:
- Username
- Email
- Display Name
* It also populates the following custom user fields created by the plugin itself:
- Address Street
- Address Suit
- Address City
- Address Pincode
- Phone
- Company Name
- Website
* When you click on the button "Fetch Articles", the plugin extract the data at https://jsonplaceholder.typicode.com/posts using API.
* It imports the blogs as Articles into your WordPress site.
* It assigns all of the newly created Articles to one of the authors imported after you clicked on the "Fetch Users" button.
* If there is no author imported earlier, it assigns all Articles to admin itself.
* It populates the following fields in the Articles custom post type:
- Title
- Description
- Author