Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
/ WP2GSheets Public archive

WP2GSheets is a Google Apps Script for pulling data from WordPress sites using the WordPress REST API and saving it to Google Sheets.

License

Notifications You must be signed in to change notification settings

jslytics-data/WP2GSheets

Repository files navigation

WP2GSheets

This is a Google Apps Script (GAS) library for fetching WordPress posts, pages, tags, categories, and users, and saving them to Google Sheets.

Getting Started

Usage To use WP2GSheets, follow these steps:

  1. Create a new Google Sheet by clicking on File > New > Google Sheets.
  2. Open the script editor by clicking on Tools > Script Editor, or create a new project from https://script.google.com/home
  3. Create new scripts for each file in the repo, and copy/paste the code
  4. Replace the siteDomain, spreadsheetId, and any other variables in each script
  5. Save the script by clicking on Save.
  6. 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.

About

WP2GSheets is a Google Apps Script for pulling data from WordPress sites using the WordPress REST API and saving it to Google Sheets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published