Skip to:
Content
Pages
Categories
Search
Top
Bottom

Move Posts inside the profile tab


  • damienoneill2001
    Participant

    @damienoneill2001

    Hi All,

    I have been trying to find information on this one for a long time but have not found anything yet and am hoping you could help.

    I have BuddyPress 1.6.4 installed on WP 3.5.1. I also have BP Posts on Profile v1.0 installed. Using this plugin, I can see my users created posts appearing on BuddyPress profile bar as a tab called Posts. It currently sits beside the Profiles tab.

    What I want to do is take the posts out of their own tab and place them into the Profiles tab.

    So what I would have is the users Profile details like Name, Description, Email and then below that within the same tab, all of their associated posts.

    I hope this makes sense!

    Thanks in advance

    Damien

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

  • damienoneill2001
    Participant

    @damienoneill2001

    Hey guys,

    Anyone have any ideas on this?

    Thanks

    Damien


    modemlooper
    Moderator

    @modemlooper

    You just need to create a WP post loop in the file members/single/profile/profile-loop.php. This function will add a loop to the bottom of profile fields. But it is not very pretty. This is just a base example.

    `function bp_profile_show_posts() {

    query_posts( ‘author=’ . bp_displayed_user_id() );

    // the Loop

    if (have_posts()) : the_post();

    the_title();

    the_content( ‘Read the full post ยป’ );

    endif;

    }

    add_action( ‘bp_after_profile_loop_content’, ‘bp_profile_show_posts’ );`


    damienoneill2001
    Participant

    @damienoneill2001

    Hi Modemlooper!

    Thank you so much for the response, I have only seen it now!

    I actually just managed to get it working myself. I will dig up the piece of code I used and post it in here for others asap!

    Thanks again for your help with this!

    Damien

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move Posts inside the profile tab’ is closed to new replies.
Skip to toolbar