post /page slug
-
How to get a current page(!!!) slug in template and a page slug from the URL with human readable URIs?
This:
$extrapostdata = get_post(the_ID(), ARRAY_A);
$slug = $extrapostdata[‘post_name’];Works well on pages only, but when I open the Page which content is blog entries it shows the first entry of the blog.
DAMN!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘post /page slug’ is closed to new replies.