Join the Webstudio community

Updated 6 months ago

Headless Wordpress with webstudio

At a glance
Hello webstudio team.
I already read docs about using wordpress as cms and look at the templates you provided.
I still have doubts on two points :

  1. What would be the best way to deal with gutenberg blocks ?
  2. Is it possible to set a page in webstudio that can generate all future pages created in the wordpress editor ?
Thanks a lot !
J
O
M
5 comments
  1. do you have an api response you can share with me for the blocks? I suspect the solution will be creating a collection with each block and conditionally showing/hiding. i just mentioned this solution here https://github.com/webstudio-is/webstudio/issues/3962#issuecomment-2295450859
  1. Yes. Create a dynamic page like /page/:slug and then query WordPress for the slug. https://docs.webstudio.is/university/foundations/cms#dynamic-pages
@Matthieu whenever in doubt if webstudio supports something, open graphql api in wordpress and see what data comes in, if data is provided then most likely you can also render it in webstudio
Nice !
For the first point, I 'll try this day and let you know.
For the second point, I already use slug to get page by uri in graphql. My question was about second (or more) page level (child page) !
Ok, let me dive into "get node by uri"feature in wpgraphql. it's a new world !!!
yeah all thats possible. would to know an example use case with ideal urls to steer you in the right direction
Add a reply
Sign up and join the conversation on Discord