Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to call in plugins in page template

In the latest trunk (and RC2 coming out soon) you can use these template tags to render activity feeds:

<?php if ( bp_has_activities( 'type=personal&amp;max=30' ) ) : ?>
<ul id="activity-list">
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class="<?php bp_activity_css_class() ?>">
<?php bp_activity_content() ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif;?>

‘type’ can be personal, sitewide, or friends. You can also pass a ‘user_id’ value if you wish. Otherwise it will use the ‘displayed_user’ id.

Skip to toolbar