Quantcast
Channel: Freelance Web Developer & Designer from Ghaziabad (nearby Delhi), India - PHP, MYSQL, Joomla, Wordpress Developer, WordPress Expert, WordPress Develper India, WooCommerce Developer, WooCommerce Expert, WooCommerce Developer India, Codeigniter Developer India, OpenCart Developer India, CakePHP, JQuery » WordPress
Viewing all articles
Browse latest Browse all 5

How to Get current page URL in WordPress

$
0
0

Put this code in your WordPress Theme’s template file to get the url of current page.

global $wp;
$current_url = home_url(add_query_arg(array(),$wp->request));

LinkedInShare


Viewing all articles
Browse latest Browse all 5

Trending Articles