Skip to:
Content
Pages
Categories
Search
Top
Bottom

add whats new form to a member activity/friends tab


  • Trobertson82
    Participant

    @trobertson82

    i would like to add the whats new form to activity/friends tab in a members profile the same way it is on the default member activity tab

Viewing 4 replies - 1 through 4 (of 4 total)

  • danbp
    Participant

    @danbp

    @trobertson82,

    use this function bp_get_template_part( 'activity/post-form' );

    Add this to bp-custom.php or child theme’s functions.php

    function whats_new_my_friend() {
    	if ( bp_is_user_friends_activity() ) :
    		bp_get_template_part( 'activity/post-form' );	
    	endif;
    }
    add_action( 'bp_before_member_body', 'whats_new_my_friend' );

    Trobertson82
    Participant

    @trobertson82

    Thankyou , that works however it puts the whats new form before the subnav ,is their a way to get it after the subnav menu


    Trobertson82
    Participant

    @trobertson82

    Thankyou , that works however it puts the whats new form before the subnav ,is their a way to get it after the subnav menu the same way it is on the default member activity tab


    danbp
    Participant

    @danbp

    Try with add_action( 'bp_before_activity_loop', 'whats_new_my_friend' );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add whats new form to a member activity/friends tab’ is closed to new replies.
Skip to toolbar