Where I am in the site? parsing http_request
-
Hi… does someone know where wordpress parses the http_request of the client?
I’d like to have the first “folder”, for example if my website is https://www.nokao.com and a client is on https://www.nokao.com/blog/ I want the “blog” string.
Actually to know where I am I do a very complicate if-else block with categories and pages tag-functions, but honestly I think it’s a loss of server-memory…
Otherwise, I need to know how to get the CATEGORY/MOTHER_PAGE I’m in, without using stupid recursive functions.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Where I am in the site? parsing http_request’ is closed to new replies.