Solving Queries About Gatsby.js and WordPress
Tags: gatsby, react, jamstack, wordpress
Published: 2019-10-07 15:22:30

---
title: Solving Queries About Gatsby.js and WordPress
published: true
description: In this post, I am going to share a few responses to the queries regarding Gatsby.js and WordPress. 
tags: #gatsby, #react, #jamstack, #wordpress
canonical_url: https://maedahbatool.com/gatsby-and-wordpress/
cover_image: https://on.ahmda.ws/1f4d87/c
---

Last month I had a chance to speak about my favorite JAMstack framework **Gatsby.js** on the *[WordSesh EMEA 2019 edition](https://twitter.com/MaedahBatool/status/1176875419368329218)*. In case, you'd been following me and my work then, you must know that for the last 2.5 years I had been shifting gears to JavaScript and had been doing JAMstack consultancy.

I just love **JAMstack with Gatsby and Netlify**. This is why I write about it regularly in magazines like [Scotch.io](https://scotch.io/@MaedahBatool) and have delivered talks on events like [WordSesh](https://wordsesh.com/) and [TheOpenDevCon](https://2018.theopendev.com/).

## 🎙 Speaking Engagements About Gatsby

This year, I presented twice on WordSesh and both talks were about Gatsby. The topics are as follows:

- ⚡️ [Fast Web With Gatsby & WordPress](https://www.youtube.com/watch?v=CzdMT7K2y9c)
- 👾 [Optimizing Your Gatsby.js Site for Production](https://www.youtube.com/watch?v=vFQEhEhtJyo)

I have uploaded both these sessions on my YouTube channel. Feel free to subscribe and view these.

## 🚴‍♀️ Optimizing Gatsby.js Site for Production

The topic primarily covered all the important steps which should be implemented and configured before your Gatsby-powered website goes live.

I discussed the implementation of functionalities like:

- Adding custom sitemaps
- Support for rendering markdown pages
- Embedding videos from multiple video sources
- Adding an RSS Feed file making your site content subscribable

I plan to write individual blog posts about each of these features which I’ll share some time later.

For now, here are the links to the demo project’s GitHub repo and the presentation deck.

- 🌟 GitHub repo → [https://Maedah.dev/WDSEPGH](https://github.com/MaedahBatool/WordSesh-Sept-2019)
- 👩‍🏫 Slides → [https://Maedah.dev/WDSlidesSep19](https://www.slideshare.net/MaedahBatool/wordsesh-emea-2019)
- 🐦 Tweet → [https://twitter.com/MaedahBatool/stat...](https://twitter.com/MaedahBatool/status/1176875419368329218)

### ⁉️ Async Q&As

This time, Brian experimented with the async Q&A session. Event attendees were provided with a questionnaire through which they asked written questions.

So, I thought about sharing the answers to these queries from which you folks can benefit.

> Can We Make Complex Woocommerce Sites With Gatsby? Is It Worth to Do?

Yes, you can definitely build WooComerce-powered WordPress sites with Gatsby that will pull the data from a REST API. Some time back, I tried building one such website using the **[gatsby-source-woocommerce](https://github.com/marcaaron/gatsby-source-woocommerce)** plugin. This package helps to fetch data from protected routes using the [WooCommerce REST API](http://woocommerce.github.io/woocommerce-rest-api-docs/) with all the required credentials.

WooCommerce offers a pretty robust API for handling stuff like products, orders, customers, reports, and discount coupons. By using this plugin, you can implement simple GraphQL filters and data variations as a set state to filter products according to your site requirements.

Moreover, since Gatsby does not has a default back-end you might face difficulty in handling the dynamic side of an eCommerce site like the checkout process. For it, you need to run ajax calls which are easier to handle with Gatsby since it is built with React.js.

>If Our Website Has No WordPress Admin System, How We Can Provide Access for Editors to Publish New Content?

If there is WordPress there is **always going to be an admin system**. That's one of the key reasons for using WordPress with Gatsby that it provides a very powerful and strong back-end since Gatsby only offers blazing-fast front-end with modern cutting edge technologies.

But at the same time, you can always code a custom admin system for your website. Just feed in data to Gatsby and generate this functionality.


## 👋 That's about it!

If you have any further queries do share your feedback via the comments section below. You can also reach out to me through my Twitter account. Follow me here → [@MaedahBatool](https://twitter.com/MaedahBatool).