WPIntell

Source evidence

Empty Items Array

WP API Menus · support · 2016-01-17T07:04:00+00:00

questionsentiment
mediumseverity
0.85relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 30 rows with source links

6.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ericsvn resolved
I have a main menu setup in wordpress, and it shows up in my theme just fine. When I try to use your plugin (with v2 of WP API), it returns the menus, but when I try and get a specific menu, the items array is empty (even though the “count” property reports 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 get my menu items to show up in the API response? { "ID": 19, "name": "Main Menu", "slug": "main-menu", "description": "", "count": 24, "items": [], "meta": { "links": { "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" } } } https://wordpress.org/plugins/wp-api-menus/ +1 – I have the exact same issue on WP 4.4.1 and WP API v2. I reposted this issue on the Github repo . I’ve submitted a pull request for this here: https://github.com/unfulvio/wp-api-menus/pull/20/files Hello! dobbler31 , thank you for your fix! Could you please or someone to update version of this plugin to add users ability to install the updated version right from wp, i.e. https://downloads.wordpress.org/plugin/wp-api-menus.1.2.1.zip I’ve updated the code / merged PRs on the Github repo https://github.com/unfulvio/wp-api-menus anyone reading this thread could you check it out from the master branch and let me know if issues are solved for all of you? thank you

Comments

5 shown
LaustDeleuran 2016-01-21T01:55:00+00:00

+1 – I have the exact same issue on WP 4.4.1 and WP API v2.

LaustDeleuran 2016-01-21T02:00:00+00:00

I reposted this issue on the Github repo .

dobbler31 2016-01-23T15:51:00+00:00

I’ve submitted a pull request for this here: https://github.com/unfulvio/wp-api-menus/pull/20/files

Bullewinkle 2016-02-03T23:35:00+00:00

Hello! dobbler31 , thank you for your fix! Could you please or someone to update version of this plugin to add users ability to install the updated version right from wp, i.e. https://downloads.wordpress.org/plugin/wp-api-menus.1.2.1.zip

Fulvio Notarstefano 2016-02-26T14:49:00+00:00

I’ve updated the code / merged PRs on the Github repo https://github.com/unfulvio/wp-api-menus anyone reading this thread could you check it out from the master branch and let me know if issues are solved for all of you? thank you