Buddypress Pages sub nav
-
Added a sub nav which works fine on all the pages except the Buddypress pages. On all Buddypress pages it just shows the same items as on the normal nav (home, about ect..)
This is what I did to add the Sub navs:
php – open tag
if($post->post_parent)
$children = wp_list_pages(“sort_column=menu_order&depth=1&title_li=&child_of=”.$post->post_parent.”&echo=0″); else
$children = wp_list_pages(“sort_column=menu_order&depth=1&title_li=&child_of=”.$post->ID.”&echo=0″);
if ($children) { ?>
php-open echo $children; ? >
php-open } ? >I have a “Community” Item in my nav like on buddypress.org. I would like to have the same items in the sub nav as on buddypress.org (Activity, Members, Groups and maybe even forums).
Can anyone point me in the right direction?
- The topic ‘Buddypress Pages sub nav’ is closed to new replies.