Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress query_posts

  • In a custom user tab I’m trying to display that users posts. (displayed user, not logged in user).

    I found this code on a forum but it’s not working for me. It should pull the ‘displayed users’ posts only, instead it shows all posts. How Can I make it pull only posts by the “displayed user”?

    `query_posts( ‘author=’ . $bp->displayed_user->id );

    // the Loop
    while (have_posts()) : the_post();
    the_content( ‘Read the full post ยป’ );
    endwhile;
    `

    What am I doing wrong?

    Thanks a ton!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Buddypress query_posts’ is closed to new replies.
Skip to toolbar