Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


Boone Gorges
Keymaster

@boonebgorges

Yeah, you’re right. Try this. It seems to work for me. Make sure you clear your cookies before testing.

function blog_posts_by_default( $query_string ) {
global $bp;

if ( ($bp->current_component == BP_ACTIVITY_SLUG || !$bp->current_component) && !$query_string)
$query_string = 'type=new_blog_post&action=new_blog_post';

return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'blog_posts_by_default' );

Skip to toolbar