Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How can I set “Show NewBlogPosts” as default on acitivity-stream?

@brainwaves
Certainly was a help, thanks! Had been playing with this aspect yesterday trying to use activity-loop.php to control different page views for the main activity loop but this aspect had alluded me.

So it’s possible to do:

if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’per_page=14&action=activity_update,new_blog_comment’));
which works nicely.

I had worked out the per_page concatonation but thought it not possible to have more than one action.

For reference this also provides me with control over the activity loop pulled into the index page:
<?php if(bp_is_front_page()): ?>
<?php bp_has_activities(‘per_page=6’); ?>
<?php endif; ?>

Skip to toolbar