Find the Current Page Slug

While I was working on a WordPress template today, I needed to find the current page’s post_slug. After investigating the function is_single in wp-includes/query.php, I discovered the following method for determining the current page ID, post title, or post name:


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *