• Resolved @mcuk

    (@mcuk)


    Hi all,

    My background: fine with html/css but new to php.

    I’m using the Buddypress plugin to develop a website offline/locally. I would like to move a subnav tab and associated page content from beneath one nav tab (TAB A) in the menu to below another nav tab (TAB B).

    Essentially it boils down to wanting to call the code used to create one page and make it do its thing somewhere else. Effectively create a page duplicate.

    I’m able to create a new subnav tab in the new desired location, but am unable to identify/load the necessary functions/code to make the desired content appear.

    Any ideas on how to do this? Ideas on how to identify the code and php files which is creating the web page? Do i need to be on the lookout for screen functions, functions, hooks?

    Spent hours going through Buddypress.org forums and the plugin php files but not able to find solution. Anything is welcome at this point!

    // Add a new subnav menu tab
    function fave_subnav_tab() {
    	global $bp;
    
    	$parent_slug = 'notifications';
    	//Add subnav item
    	bp_core_new_subnav_item( array(
    	'name'            => __( 'Fave' ),
    	'slug'            => fave,
    	'parent_url'      => $bp->loggedin_user->domain . $parent_slug.'/',
    	'parent_slug'     => $parent_slug,
    	'screen_function' => '?????',
    	'position'        => 30,
    	) );
    }
    add_action( 'bp_setup_nav', 'fave_subnav_tab' );
  • The topic ‘Buddypress how to duplicate a page and its content’ is closed to new replies.