Skip to:

Activity Stream Pagination (bp_has_activities())

  • one95studios



    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:

    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() ?>


    <p> <div class=\\\”pagination-links\\\” id=\\\”activity-pag\\\”>

    <?php bp_activity_pagination_links() ?>


    <p> <div id=\\\”activity-rss\\\”>

    <p>\\\” title=\\\”<?php _e( \\\’RSS Feed\\\’, \\\’buddypress\\\’ ) ?>\\\”><?php _e( \\\’RSS Feed\\\’, \\\’buddypress\\\’ ) ?></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>


    <p> <?php endif;?>


Viewing 1 replies (of 1 total)

  • one95studios


    Well since no has looked at this yet, you can ignore it. I never got it worked and have since moved to a new product.

    Thanks for the support.

Viewing 1 replies (of 1 total)
  • The topic ‘Activity Stream Pagination (bp_has_activities())’ is closed to new replies.
Skip to toolbar