/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$post_obj = $wp_query->get_queried_object(); $post_ID = $post_obj->ID; $post_title = $post_obj->post_title; $post_slug = $post_obj->post_name;
URL: http://wenderhost.com/2007/08/09/wordpress-tip-find-the-current-page-slug/
Comments
