{"id":582793,"date":"2007-06-20T11:35:04","date_gmt":"2007-06-20T11:35:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/post-page-slug\/"},"modified":"2016-08-18T23:03:18","modified_gmt":"2016-08-18T23:03:18","slug":"post-page-slug","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/post-page-slug\/","title":{"rendered":"post \/page slug"},"content":{"rendered":"<p>How to get a current page(!!!) slug in template and a page slug from the URL with human readable URIs?<br \/>\nThis:<br \/>\n $extrapostdata = get_post(the_ID(), ARRAY_A);<br \/>\n  $slug = $extrapostdata[&#8216;post_name&#8217;];<\/p>\n<p>Works well on pages only, but when I open the Page which content is blog entries it shows the first entry of the blog.<br \/>\nDAMN!!<\/p>\n","protected":false},"template":"","class_list":["post-582793","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/582793","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\/582793\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=582793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}