Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to Get Latest Ten Forum Titles


bpisimone
Participant

@bpisimone

I’m still trying to make this happen without a plugin: Now I am pretty certain this can be accomplished by using this

if ( bp_has_activities( 'type=sitewide&max=6&action=new_forum_topic' ) )

I still haven’t figured out though how only to filter out the title (plus link).

<?php if ( bp_has_activities( 'type=sitewide&max=10&action=new_forum_topic' ) ) : ?>

<ul class="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;?>

Maybe by modifying bp_activity_content?

Thanks people!

Skip to toolbar