{"id":4765686,"date":"2014-04-01T21:04:39","date_gmt":"2014-04-01T21:04:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-menu-function\/"},"modified":"2016-08-21T18:54:23","modified_gmt":"2016-08-21T18:54:23","slug":"custom-menu-function","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-menu-function\/","title":{"rendered":"Custom menu function."},"content":{"rendered":"<p>Howdy all.<\/p>\n<p>I need to extend the wp_nav_menu function a bit.<\/p>\n<p>I have a menu structure like this<\/p>\n<pre><code>&lt;li data-slide=&quot;1&quot;&gt;Home&lt;\/li&gt;\n&lt;li data-slide=&quot;2&quot;&gt;About us&lt;\/li&gt;\n&lt;li data-slide=&quot;3&quot;&gt;Portfolio&lt;\/li&gt;\n&lt;li data-slide=&quot;4&quot;&gt;Team&lt;\/li&gt;\n&lt;li data-slide=&quot;5&quot;&gt;Blog&lt;\/li&gt;\n&lt;li data-slide=&quot;6&quot;&gt;Services&lt;\/li&gt;\n &lt;li data-slide=&quot;7&quot;&gt;Contact&lt;\/li&gt;<\/code><\/pre>\n<p>and I need <strong>those numbers<\/strong> from the &#8220;data-slide&#8221; attribute to be dynamically changed, if a user rearrange the menu in Appereance -&gt; Menus.<\/p>\n<p>If somebody could help me that would be great.<\/p>\n<p>Regards<\/p>\n","protected":false},"template":"","class_list":["post-4765686","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4765686","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4765686\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4765686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}