Return to Snippet

Revision: 39752
at January 20, 2011 11:53 by racl101


Initial Code
// call get_page_link($post->ID)
// where $post-is a WordPress variable and needs to be global if called from inside a function.
get_page_link($post->ID);

Initial URL
http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is

Initial Description
I got the answer to this question on WordPress Stack Exchange website:

http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is

Initial Title
How to obtain current page permalink url from a function on call on a page template and not from inside the Loop?

Initial Tags
php, wordpress

Initial Language
PHP