Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom buddypress loop isn't working


  • lhnz
    Participant

    @lhnz

    <?php while ( bp_activities() ) : bp_the_activity(); ?>

    <?php bp_activity_action() ?>

    <?php endwhile; ?>

    The above code produces nothing despite having site-wide activity elsewhere… I’ve placed this code inside login.php near the bottom of the page. login.php is a custom page template that is used when you access the page http://localhost/login/.

    As soon as the code above is run it appears to crash PHP, or at least it causes the footer.php not to be outputted.

    What have I done wrong? Is there a WP_Query object that I need to access as there is with WordPress? I’m confused.

    For the record, I am using the 1.1.3 version of Buddypress as well as WordPress MU 2.8.6. I do not want to upgrade since I have made substantial changes to the theme, and am scared of breaking everything…

Viewing 1 replies (of 1 total)

  • lhnz
    Participant

    @lhnz

    <?php bp_has_activities(‘per_page=25’);

    while ( bp_activities() ) : bp_the_activity(); ?>

    <div><?php bp_activity_content() ?></div>

    <?php endwhile; ?>

    This worked. Frankly the lack of documentation and my lack of time is making this a nightmare to code… :/

Viewing 1 replies (of 1 total)
  • The topic ‘Custom buddypress loop isn't working’ is closed to new replies.
Skip to toolbar