diff --git a/functions.php b/functions.php index 180963c..6872385 100644 --- a/functions.php +++ b/functions.php @@ -668,18 +668,22 @@ add_action( 'pre_get_posts', function ($query) { // не админка и основной цикл страницы // $category = get_queried_object(); - // var_dump($category); exit; + // var_dump($category); exit; + - if ( is_category( 'arkhiv' ) ) { $query->set( 'posts_per_page', 8 ); } else { - $query->set( 'posts_per_page', 23 ); + $query->set( 'posts_per_page', 25 ); + } + + if (is_front_page()) { + $query->set( 'posts_per_page', 25 ); } if (is_author()){ - $query->set( 'posts_per_page', 23 ); + $query->set( 'posts_per_page', 24 ); } diff --git a/index.php b/index.php index 4fbb70e..9588666 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,7 @@ $nn = 0;?> array( 'category__in' => array(2), 'post__not_in' => array($mainpost_id), - 'posts_per_page' => 22, + 'posts_per_page' => 24, 'meta_query' => array( array( 'key' => '_thumbnail_id',