I have created a page template where I need current page URL
I have tried
but it shows nothing.
Let me know is anything missing in code.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community