Displaying members favorite activities
Hello. I’ve created a new member nav item called favorites that will contain listings of all favorites on the site (Posts, CPTs, Topics, Activities). Everything is working except for the activities. Here’s how I’m creating the subnav
// Favorite activity items bp_core_new_subnav_item(array( 'name' => __( 'Activity', 'Profile activity screen sub nav', 'kleo' ), 'slug' => 'activity', 'parent_url' => $bp->displayed_user->domain . $bp->bp_nav['favorites']['slug'] . '/', 'parent_slug' => $bp->bp_nav['favorites']['slug'], 'screen_function' => 'bp_activity_screen_favorites', 'position' => 10, 'item_css_id' => 'activity-favs' ));
The subnav item is displayed, but nothing prints out. Is there a conditional somewhere that tells bp to only print out the favorite activities if you’re withing the Activity nav screen?
- The topic ‘Displaying members favorite activities’ is closed to new replies.