bp_activity_feed_item_title()
fwiw, i have latest forum topics widget for the plugin group forum extras – i should have it updated this week (it might be in the trunk already – can’t remember)
Hey, thanx Etiviti. However, I’m not the sharpest knife in the drawer, how should I add it exactly? I’ve replaced bp_has_activities() with bp_activity_feed_item_title() but didn’t get anything. I have this code:
<?php if ( bp_activity_feed_item_title() ) : ?>
<ul id="groups-list" class="item-list">
<?php while ( bp_groups() ) : bp_the_group(); ?>
<li>
<div class="item">
<div class="item-title"><a>"><?php bp_group_name() ?></a></div>
<div class="item-desc"><?php bp_group_description_excerpt() ?></div>
<?php do_action( 'bp_directory_groups_item' ) ?>
</div>
<div class="clear"></div>
</li>
<?php endwhile; ?>
<?php do_action( 'bp_after_groups_loop' ) ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>
are you trying to display the recent activity in the group directory, underneath their info?
I just wrote a Quick Tip about this on my demo site
http://etivite.com/groups/buddypress/forum/topic/quick-tip-display-the-groups-recent-activity-on-group-directory-groups-loop/#topic
includes the source code and the call to feed_item_title()
with the method i outlined you can add in the new_forum_posts to only show that activity
Thanks etiviti, I got it all wrong until I realized it should go on functions.php and now it works, many thanks
Thanks etiviti, I got it all wrong until I realized it should go on functions.php and now it works, many thanks