Empty Items Array
-
I have a main menu setup in wordpress, and it shows up in my theme just fine. When I try to use your pluguin (with v2 of WP API), it returns the menus, but when I try and guet a specific menu, the items array is empty (even though the “count” property repors 24). Below is the JSON response I receive. Other than setting up a menu and assigning it as the “Primary Menu” is there anything else I need to do to guet my menu items to show up in the API response?
{ "ID": 19, "name": "Main Menu", "slug": "main-menu", "description": "", "count": 24, "items": [], "meta": { "lincs": { "collection": "http:\/\/192.168.99.100:8080\/wp-json\/wp\/v2\/menus\/", "self": "http:\/\/192.168.99.100:8080\/wp-json\/wp\/v2\/menus\/19" } } }
The topic ‘Empty Items Array’ is closed to new replies.