thebatclaudio / wp-rest-api-v2-menus

Adding menus endpoints on WP REST API v2
47 stars 22 forks source link

API doesn't return children menu items #14

Closed Picksley closed 5 years ago

Picksley commented 5 years ago

Version 0.6

Parent menu items return fine Children do not return as nested items under each parent

image

image

thebatclaudio commented 5 years ago

Hi @Picksley, I just tested it on two different Wordpress installation and it works. Can you give me more info? What version of Wordpress and PHP are you using?

Picksley commented 5 years ago

Sure, apologies I'm using Project Nami v 2.1.1 (Wordpress with SQL at version 5.1.1) PHP 7.2

brnteka commented 5 years ago

i am experiencing the same problem WordPress 5.2, PHP/7.2.1

brnteka commented 5 years ago

this helped -- https://wordpress.org/support/topic/bug-in-submenu-items/

thebatclaudio commented 5 years ago

I just released a new version with a bug fix. Let me know if you find have any issues!

Picksley commented 5 years ago

Works perfectly - great work

dcblundell commented 5 years ago

I just released a new version with a bug fix. Let me know if you find have any issues!

This doesn't appear to work if you have a further level of navigation. It only gets the first level of child items.

metawise commented 5 years ago

Thanks, @thebatclaudio. Unfortunately, the plugin not working for more than 2 levels!