Open duffner opened 1 year ago
Thanks for leaving this comment and apologies for the late reply. If you're looking for a pretty painless local environment to play with WordPress LocalWP is a great tool: https://localwp.com/
That will get you pretty much one-click local installs. There is also a WASM-driven WordPress playground here that's pretty neat: https://developer.wordpress.org/playground/
Let me know what else would be helpful in getting started. We have a team working on an export tool that can be dragged into Local as a .zip, so once that's available I'll include a site file as a .zip.
Hi @duffner, just got the same doubt about this item with the menus. Because I had a custom named location for my menus (Instead of PRIMARY). Check the file you have under: src/lib/api.js
and replace PRIMARY
with whatever your menu location name is.
To know your available menu location names, go to the GraphQL IDE section on your Wordpress Dashboard, find the item "menus" and you'll see something like this but with your menu location names as a dropdown:
Then just replace the PRIMARY
in api.js
with the name of the menu you want to display there.
I agree with @JEverhart383 suggesting LocalWP, after years of using WP with different local environments, I found it and I'm really happy about it.
Let me know if this works for you @duffner.
Hi, I love that fact that you put all of this together, but in order to learn and grow, I'd love to see a sample WP database, or public install available to learn what the menu names, and sample WP side needs to look like for all of this to work.