Custom buddypress loop isn't working
-
<?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…
- The topic ‘Custom buddypress loop isn't working’ is closed to new replies.