{"id":10449992,"date":"2018-06-30T06:04:42","date_gmt":"2018-06-30T06:04:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/unique-ids\/"},"modified":"2018-06-30T06:10:49","modified_gmt":"2018-06-30T06:10:49","slug":"unique-ids","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/unique-ids\/","title":{"rendered":"unique ids"},"content":{"rendered":"<p>I am looking for a way to add unique ids to the menu items that are rendered in the single column template.<br \/>\nI can edit the template, but it seems the menu items are not being looped so anything that I have tried to increment, never increments.<br \/>\ncan I retrieve the menu items post id from within the template, so that the id can be rendered in the html?<\/p>\n<p>I found $food_id, $group_id and others in the template, but none of them retrieve a number that is unique to the menu item.<br \/>\nor maybe a way to retrieve the menu items sort order number?<\/p>\n<p>I need to style different parts of the menu and having unique ids is the only way that I can style the menu items and not affect everything in the menu. <\/p>\n","protected":false},"template":"","class_list":["post-10449992","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10449992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10449992\/revisions"}],"predecessor-version":[{"id":10449998,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10449992\/revisions\/10449998"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10449992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}