A starter skeleton that leveraged the WordPress API for Gatsby. Created by Eric Windmill and now maintained by GatsbyCentral.
Using this starter requires:
{
resolve: 'gatsby-source-wordpress',
options: {
// The base url to your WP site.
baseUrl: 'YOUR_WORDPRESS_URL',
// WP.com sites set to true, WP.org set to false
hostingWPCOM: false,
// The protocol. This can be http or https.
protocol: 'http',
// Use 'Advanced Custom Fields' Wordpress plugin
useACF: true,
auth: {},
// Set to true to debug endpoints on 'gatsby build'
verboseOutput: false
}
},```
## Source
* [Github](https://github.com/GatsbyCentral/gatsby-central-starter)allWordpressPost {
edges {
node {
featured_media {
source_url
}
author {
name
avatar_urls {
wordpress_24
wordpress_48
wordpress_96
}
}
date
slug
title
modified
excerpt
id
acf {
project
date
}
categories {
name
}
tags {
name
}
content
}
}
}Suggestions:
High configurability:
Author segment
Posts in Markdown
Tags
Categories
Disqus support
Social features
SEO
Development tools
Ruben Harutyunyan did most of the hard work with Gatsby Advanced Starter. The rest of the credit is due to Gatsby.
WARNING: Make sure to edit static/robots.txt to include your domain for the sitemap!
If you'd like to share this post, here are some handy links to make that easier.
Post last updated: October 03, 2018
Feedback? A point to make? Express yourself via the comment form below.
Don't forget to check the captcha. Otherwise we won't receive your comment.
Be the first to post a comment on this post