Activity Stream Pagination (bp_has_activities())
-
Hello,
I searched the forums for a solution but alas, couldn\\\’t find one.
I am having an issue with the pagination of the activity stream of a users profile. You can see an example on this link: http://one95studios.com/yab/members/memyselfeye/
You will see there that I have it set to display 10 items per page with a maximum of 20 results. You will also see that no matter what page link you click on that the same results appear in the stream.
Here is my code:
<div class=\\\”info-group\\\”>
<h4><?php echo bp_word_or_name( __( \\\”My Trail\\\”, \\\’buddypress\\\’ ), __( \\\”%s\\\’s Trail\\\”, \\\’buddypress\\\’ ), true, false ) ?></h4></p>
<p> <?php if ( bp_has_activities( \\\’type=personal&per_page=10&max=20\\\’ ) ) : ?></p>
<p> <div class=\\\”pag-count\\\” id=\\\”activity-count\\\”>
<?php bp_activity_pagination_count() ?>
</div></p>
<p> <div class=\\\”pagination-links\\\” id=\\\”activity-pag\\\”>
<?php bp_activity_pagination_links() ?>
</div></p>
<p> <div id=\\\”activity-rss\\\”>
</div></p>
<p> <ul id=\\\”activity-list\\\”>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class=\\\”<?php bp_activity_css_class() ?>\\\”>
<?php bp_activity_content() ?></p>
<p> <?php endwhile; ?></p>
<p> <?php else: ?></p>
<p> <div id=\\\”message\\\” class=\\\”info\\\”>
<p><?php echo bp_word_or_name( __( \\\”You haven\\\’t done anything yet.\\\”, \\\’buddypress\\\’ ), __( \\\”%s hasn\\\’t done anything yet.\\\”, \\\’buddypress\\\’ ), true, false ) ?></p>
</div></p>
<p> <?php endif;?>
</div>
- The topic ‘Activity Stream Pagination (bp_has_activities())’ is closed to new replies.