getting the pagename
-
Ok… I’m a little confused… I’ve written a plugin that I’m trying to update it on my site. Whent he page is called on its own, then it works, but if I add directories to the URL it craps out on me.
for example:
https://URL/photos/
get_query_var(‘pagename’) will = “photos”but
https://URL/photos/photo/234243
get_query_var(‘pagename’) will = “” when it should equal “photos”, am I wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘getting the pagename’ is closed to new replies.