Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,528
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,783
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
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' );
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS