Error while navigating to Buddypress Group using custom created Link
I created dynamic menus to the Buddy Press groups using the following code
`$url = site_url().”/groups/”.$groupslug;’
The $url variable has the correct variable, but while clicking from there, wordpress switches to the intended group, but I get a warning that says –
“Notice: bp_nav was called incorrectly. These globals should not be used directly and are deprecated. Please use the BuddyPress nav functions instead. Please see Debugging in WordPress for more information. (This message was added in version 2.6.0.) in /home/…/functions.php on line 3897”
I dont get the same warning when I click through the normal buddpress pages.
- You must be logged in to reply to this topic.