Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,863
- How-to & Troubleshooting
- 128,917
- Creating & Extending
- 25,744
- Requests & Feedback
- 9,446
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,390
- Miscellaneous
- 9,136
-
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