Accessing Original $wp_query
-
Hello,
As I have read here, BP modifies the $wp_query object, rendering several WordPress functions useless inside the original loop.
However, I need to access the page slug.
I’m on http://www.domain.com/group/name-of-group/ and I need to access “name-of-group”. Any suggestions? For what it’s worth, I am trying to do so in buddypress.php right after header() — in the loop or out of the loop, it doesn’t matter. I just don’t want to resort to parsing the URL.
Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Accessing Original $wp_query’ is closed to new replies.