Show loop of posts from member on profile.
-
I’m trying to show a loop of all posts by an author on their profile page. I’m using infinite scroll to display them but for some odd reason it only shows the initial post_per_page limit and won’t trigger any posts after that saying that “no more posts available”. I’m only having this problem on a profile page as it works on all index, archive, and search pages. Here’s the loop I’m using. Any ideas?
`<?php
global $bp;
$user_id = $bp->displayed_user->id;
query_posts($query_string .’&posts_per_page=6′ . ‘&cat=-1’ . ‘&author=’. $user_id);
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<
content
>`
- The topic ‘Show loop of posts from member on profile.’ is closed to new replies.