Wordpress: How do I get the current name of my page
If my current url is www.example.com/thank-you, how d开发者_如何学编程o I echo out the page name in a wordpress way.
WordPress Way:
echo $post->post_name;
Normal Way: (Should work in WP too)
echo $_SERVER['PHP_SELF'];
精彩评论