if you’re using a page template, then if you want to get the current page URL you could try to use this function:
get_permalink();
or
echo get_permalink();
if you want to print the result
if you’re using a page template, then if you want to get the current page URL you could try to use this function:
get_permalink();
or
echo get_permalink();
if you want to print the result