{"id":304,"date":"2016-12-15T00:10:17","date_gmt":"2016-12-14T22:10:17","guid":{"rendered":"http:\/\/itsimple.info\/?p=304"},"modified":"2016-12-15T00:10:17","modified_gmt":"2016-12-14T22:10:17","slug":"simple-way-to-add-horizontal-categories-menu-in-wordpress-without-css","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=304","title":{"rendered":"Simple way to add horizontal categories menu in WordPress without CSS"},"content":{"rendered":"<p>\u00a0<\/p>\n<p>To create a horizontal categories menu separated by \u2018 | \u2018 in WordPress, use this code.<\/p>\n<p><code><?php<br \/>\necho str_replace('<br \/>',' | ',<br \/>\nwp_list_categories('style=&echo=0&title_li='));<br \/>\n?><br \/>\n<\/code><br \/>\nIf you want to exclude category from the menu then add this code, Example to exclude category with id=2 :<\/p>\n<pre><code><pre><code>wp_list_categories('style=&echo=0&title_li=&exclude=2');<\/code><\/pre>\r\n\r\n<\/code><\/pre>\n<p>To find the category id,<br \/>\n1. go to Posts > Categories.<br \/>\n2. Hover to any category name, and look at your browser status bar. Look for something like `\u2026&tag_ID=2\u2026`. In this case, the category id is 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 To create a horizontal categories menu separated by \u2018 | \u2018 in WordPress, use this code. If you want to exclude category from the menu then add this code, Example to exclude category with id=2 : wp_list_categories(&#8216;style=&#038;echo=0&#038;title_li=&#038;exclude=2&#8217;); To find the category id, 1. go to Posts > Categories. 2. Hover to any category name, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}