In WordPress, is it possible to retrieve the part of the URL after a #
?
I'm trying echo the_slug();
but it's showing front slug. But I want after #tag
For example: I'm searching and land on this page. And print last anchor text.
http://www.mywebsite.com/test/#test1 >> Output: test1
http://www.mywebsite.com/test/#test-test2 >> Output: test-test2
the_slug()
is no native WordPress function... where does it come from?