Re: Group Activity Feed
I built a child theme, creating the style.css as shown in that link and it built fine
then I created functions.php and added the code below (does the fact that it is installed on snipbids.com/network have any impact)
I then made a duplicate of bp-activity-groups-feed.php and put it in the child theme folder and made the edits
however it did not work the code in my functions.php site shows in the header…see: http://www.snipbids.com/network
Any ideas why? Thanks. My functions.php file
// remove the current group activity feed
remove_action( ‘wp’, ‘groups_action_group_feed’, 3 );
function my_groups_action_group_feed() {
global $bp, $wp_query;
if ( !bp_is_active( ‘activity’ ) || $bp->current_component != $bp->groups->slug || !$bp->groups->current_group || $bp->current_action != ‘feed’ )
return false;
$wp_query->is_404 = false;
status_header( 200 );
if ( ‘public’ != $bp->groups->current_group->status ) {
if ( !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
return false;
}
// you should copy /buddypress/bp-activity/feeds/bp-activity-group-feed.php to your theme
// adjust YOURTHEME to the name of your theme’s directory name
include_once( WP_CONTENT_DIR . ‘/themes/dusk/bp-activity-group-feed.php’ );
die;
}
add_action( ‘wp’, ‘my_groups_action_group_feed’, 3 );