Re: adding content to the 1.2 default theme homepage
I found the function that was creating the /blog behavior from before, added it to my theme functions.php file, and it’s working fine again. No pages, no Settings > Reading changes, nothing.
Here’s the function: (Note – I changed the function name in my code just in case there were any conflicts. I’m pasting the original code here, so be aware)
/* Make sure the blog index page shows under /[HOME_BLOG_SLUG] if enabled */
function bp_dtheme_show_home_blog() {
global $bp, $query_string, $paged;
if ( $bp->current_component == BP_HOME_BLOG_SLUG && ( !$bp->current_action || ‘page’ == $bp->current_action ) ) {
unset( $query_string );
if ( ( ‘page’ == $bp->current_action && $bp->action_variables[0] ) && false === strpos( $query_string, ‘paged’ ) ) {
$query_string .= ‘&paged=’ . $bp->action_variables[0];
$paged = $bp->action_variables[0];
}
query_posts($query_string);
bp_core_load_template( ‘index’, true );
}
}
add_action( ‘wp’, ‘bp_dtheme_show_home_blog’, 2 );