On January 8, 2014 at 7:52 am
You cna fix this by carefully editing the functions.php file. Open up functions.php from Appearance> editor and replace this:
function asteria_home_query($query) {
if ( $query->is_home()) {
global $asteria;
set_query_var( 'post_type', 'post' );
set_query_var( 'paged', ( get_query_var('paged') ? get_query_var('paged') : 1) );
if(!empty($asteria['enable_cat'])){
$postcount = $asteria['n_posts_field_id'];
$postcat = $asteria['posts_cat_id'];
set_query_var( 'posts_per_page', ''.$postcount.'' );
if(!empty($asteria['posts_cat_id'])){set_query_var( 'cat', ''.implode(',', $postcat).'' );}
}
}
}
add_action( 'pre_get_posts', 'asteria_home_query' );
with this:
function asteria_home_query($query) {
if ( $query->is_home()) {
global $asteria;
set_query_var( 'post_type', 'post' );
set_query_var( 'paged', ( get_query_var('paged') ? get_query_var('paged') : 1) );
if(!empty($asteria['enable_cat'])){
$postcount = $asteria['n_posts_field_id'];
$postcat = $asteria['posts_cat_id'];
set_query_var( 'posts_per_page', ''.$postcount.'' );
if(!empty($asteria['posts_cat_id'])){set_query_var( 'cat', ''.implode(',', $postcat).'' );}
}
}
}
add_action( 'pre_get_posts', 'asteria_home_query' );