Skip to:
Content
Pages
Categories
Search
Top
Bottom

add FoF loop on profile

  • @commoneasy

    Participant

    Hi there, i’m trying to add an extra friend loop on the buddypress profile menu. So I’have added the following to my bp-custom file:

    // friend of friend loop nav item
    bp_core_new_subnav_item( array( 
    	'name' => 'friends of friends',
    	'slug' => 'fof', 
    	'parent_url' => $bp->loggedin_user->domain . $bp->bp_nav['friends']['slug'] . '/' ,
    	'parent_slug' => $bp->bp_nav['friends']['slug'],
    	'position' => 10,
    	'screen_function' =>  'bp_fof'
    	) 
    ); 
    function bp_fof() {
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'buddypress/members/single/fof' ) );
    }

    The buddypress/members/single/fof.php file is just a copy of the members-loop.php template file. The extra nav item is showing up, but the content seems to be empty… What is it what I am doing wrong here?

  • The topic ‘add FoF loop on profile’ is closed to new replies.
Skip to toolbar