Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp_activity_content_body() : recent site wide posts (solved)


Roger Coathup
Participant

@rogercoathup

We just went with a loop like this:

`
<?php $args = array (
‘action’ => ‘new_blog_post’,
‘max’ => 20); ?>

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

    <?php $blog_id = bp_get_activity_item_id();

    if ((int)$blog_id == 1) continue; ?>

`

@boonebgorges has talked about adding ‘exclude’ parameters to some of the loop functions, which could make this much neater – I don’t know the progress / state of that work

Skip to toolbar