{"id":2073103,"date":"2011-05-10T09:33:07","date_gmt":"2011-05-10T09:33:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-navigation-help\/"},"modified":"2016-08-19T23:58:12","modified_gmt":"2016-08-19T23:58:12","slug":"wordpress-navigation-help","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-navigation-help\/","title":{"rendered":"WordPress navigation help"},"content":{"rendered":"<p>Just starting to use WordPress and I&#8217;m trying to get the current page to show up as active. I would like it to be so the page you are on shows up as &lt;li class=&#8221;active&#8221;&gt;<\/p>\n<p>This is the code I&#8217;m using to show the menu.<\/p>\n<p>I believe it&#8217;s a new feature on WordPress 3<\/p>\n<p>&lt;?php wp_nav_menu(array(&#8216;menu&#8217; =&gt; &#8216;nav&#8217;));?? <\/p>\n<p>This is what the HTML is outputting<\/p>\n<p><em>[Code moderated as per the <a href=\"https:\/\/codex.wordpress.org\/Forum_Welcome\">Forum Rules<\/a>. Please use the <a href=\"http:\/\/wordpress.pastebin.com\/\">pastebin<\/a>]<\/em><\/p>\n<p>I don&#8217;t have a link to the site at the moment as I&#8217;m building it locally first.<\/p>\n<p>Thanks for any help.<\/p>\n","protected":false},"template":"","class_list":["post-2073103","topic","type-topic","status-closed","hentry","topic-tag-wp_nav_menu"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2073103","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\/2073103\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2073103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}