This is a Google Apps Script (GAS) library for fetching WordPress posts, pages, tags, categories, and users, and saving them to Google Sheets.
Usage To use WP2GSheets, follow these steps:
- Create a new Google Sheet by clicking on File > New > Google Sheets.
- Open the script editor by clicking on Tools > Script Editor, or create a new project from https://script.google.com/home
- Create new scripts for each file in the repo, and copy/paste the code
- Replace the siteDomain, spreadsheetId, and any other variables in each script
- Save the script by clicking on Save.
- In the script editor, click on the getAllWordPressData Script and hit Run
Auto-formatting WP2GSheets includes auto-formatting options for certain fields. For example, the title field is formatted as a hyperlink to the post URL. You can customize the auto-formatting options by modifying the applyCustomFormatting() function in wp2gsheets.gs.
License This project is licensed under the MIT License.