Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How can I get a paged activity-stream instead of the “Load more”?


Mariusooms
Participant

@mariusooms

This is the code for pagination:

<div class="pagination">
<div class="pag-count"><?php bp_activity_pagination_count() ?></div>
<div class="pagination-links"><?php bp_activity_pagination_links() ?></div>
</div>

It is already on that page, but it wrapped in <noscript> tags. Just remove those tags and should be good for the top of the page. Just repeat that code somewhere at the bottom, preferably just before the <?php else : ?> statement.

To remove to “load More” tab remove or uncomment the following code on that same template:

<?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>
<li class="load-more">
<a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a>   <span class="ajax-loader"></span>
</li>
<?php endif; ?>

Also look at this codex page, it could be helpful to show you a number of things:

https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

Skip to toolbar