how to get wordpress page url php code

Question

So am trying to get wordpress current page url in the header.
I tried below code but not working,
Please it urgent.
your can see my client current music theme.

$current_url = home_url($_SERVER['REQUEST_URI'])
0
Zamani Vogue 1 month 2022-08-16T04:08:57-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse