-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): improve WordPress tutorial (#20520)
* point example to a demo REST API instead of a dummy URL * remove redundant flag * add missing pieces of config for a working default starter site * link to info about stopping and starting gatsby develop for total beginners * link to info about stopping and starting gatsby develop for total beginners * add missing key prop so React doesn't throw an error when this is copied in * add an actual demo URL instead of the same one we're using below * use the live pantheon site instead of the dev one. the dev url gets put to sleep after a period of inactivity and will throw a 503 error if someone tries to use it in this tutorial * add a demo url * switch from wordpress.com example to wordpress.org example this block of code shows `hostingWPCOM: false` below, so it doesn't make sense to use a wordpress.com url here * update protocol * Make clearer which file we're working with * Revert "link to info about stopping and starting gatsby develop for total beginners" This reverts commit 2b8a678. * Update using-wordpress readme to reflect that the code here works now Co-authored-by: GatsbyJS Bot <mathews.kyle+gatsbybot@gmail.com>
- Loading branch information
Showing
4 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Using WordPress | ||
|
||
This is an example which contains sample code for demonstrating how to source data from WordPress using the [gatsby-source-wordpress plugin](https://www.gatsbyjs.org/packages/gatsby-source-wordpress/). This example is not a starter or working site. It is meant for the purpose of learning and contains code that cannot be included in the recipe itself. This example is created to serve as an extension to the example code provided in the Sourcing from WordPress recipe in the Sourcing data section. | ||
|
||
IMPORTANT NOTE: This example site won't keep working if you switch the WordPress site to one of yours. It's meant as a learning resource. Try starting from scratch with a site created by `gatsby new` and start copying over parts from this site starting with `gatsby-config.js`. | ||
This is an example which contains sample code for demonstrating how to source data from WordPress using the [gatsby-source-wordpress plugin](https://www.gatsbyjs.org/packages/gatsby-source-wordpress/). This example is created to serve as an extension to the example code provided in the [Sourcing from WordPress recipe](https://www.gatsbyjs.org/docs/recipes/sourcing-data#sourcing-from-wordpress) in the Sourcing data section. It is meant for the purpose of learning and contains code that cannot be included in the recipe itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters