Return to Snippet

Revision: 11041
at January 21, 2009 15:36 by jimmysessions


Initial Code
$post_obj = $wp_query->get_queried_object();
$post_ID = $post_obj->ID;
$post_title = $post_obj->post_title;
$post_slug = $post_obj->post_name;

Initial URL
http://wenderhost.com/2007/08/09/wordpress-tip-find-the-current-page-slug/

Initial Description

                                

Initial Title
Wordpress get page slug

Initial Tags
template, page, wordpress

Initial Language
PHP