Skip to content
Discussion options

You must be logged in to vote

Hi @pradtv , if you mean dynamic routes as in client side with content being fetched in the users browser directly from WP instead of from Gatsby, you'll want to first check the filesystem route api docs for setting up a dynamic client side route.
Once you've done that and understand how it works you can use a client-side GraphQL library like Apollo or Urql to use the dynamic parts of the url to make a request directly to WPGraphQL.

Check the WPGraphQL docs to see how to query for tags/categories https://www.wpgraphql.com/docs/categories-and-tags.

If you don't mean client side and instead mean generating SSR'd pages for these, you can do this the same way you create any page in Gatsby, ei…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pradtv
Comment options

Answer selected by pradtv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress
2 participants