northosts / wuxt

Nuxt/WordPress development environment, combining the worlds biggest CMS with the most awesome front-end application framework yet.
https://github.com/northosts/wuxt
GNU General Public License v2.0
551 stars 66 forks source link

Menus end point claims menu location doesn't exist #123

Open althe3rd opened 4 years ago

althe3rd commented 4 years ago

Just installed the WUXT plugin in a fresh install of wordpress. Setup and applied a menu to my one menu location defined in functions.php but the WUXT rest end point claims the menu doesn't exist.

I feel like there is likely an extra step I need to take but its not clear what that is. Particularly since all of the other end points are working perfectly.

Any reason the menu end point would claim no menu location exists when one is clearly defined and assigned in wordpress?

Triloworld commented 4 years ago

This one : https://pl.wordpress.org/plugins/wp-rest-api-v2-menus/ Have it proper registered.

holygekko commented 3 years ago

The link above works (i guess, haven't tried it), but doesn't integrate with $wp object in nuxt. See this pull request for what to fix: https://github.com/northosts/wuxt/pull/110 btw This needs to be fixed in the wp plugin, not the theme.