Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] authordata – latest Buddypress


  • phos flip
    Participant

    @wamoma

    I created a widget to display posts by a buddypress member when on their profile. The latest update has broken it though and I’m guessing it’s something to do with how I’m getting the displayed member.

    Has this changed? The code I’m using is:

    global $authordata, $post;
    
    $related_posts = get_posts( array(              
    'author' => $authordata->ID,
    // 'author' => bp_displayed_user_id(),
    'posts_per_page' => 10,
    'post_type' => 'my_story',
    'post__not_in' => array( $post->ID ),
    'order'=> 'ASC',
    'orderby' => 'title',
    'exclude' => get_the_ID()
    ) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] authordata – latest Buddypress’ is closed to new replies.
Skip to toolbar