EvanAgee / vuejs-wordpress-theme-starter

A WordPress theme with the guts ripped out and replaced with Vue.
https://vuewp.com/
1.6k stars 281 forks source link

WP Menu via WP-API #9

Closed raisiqueira closed 6 years ago

raisiqueira commented 6 years ago

Hi! for the menus via WP-API, we can use WP Rest API Menus, but we have a problem. The endpoint don'ts /wp-json/wp/v2/, is /menus/v1/menus.

Possible solution: In the app.js file, change the API_BASE_PATH for only /wp-json, instead of: /wp-json/wp/v2/.

done that, we created a module to get the menu with vuex. 😄

I'm using it that way, but with NuxtJS. Can I make a pull request?

itjunkii83 commented 6 years ago

I would really like to see this working. New to Vue and struggling quite a bit on how to create new routes from my Wordpress menu.

EvanAgee commented 6 years ago

Yes, PLEASE make a pull request @raisiqueira