From 4c66dbc08bbcb1ebaa261ee2840b5b9123cbc5f4 Mon Sep 17 00:00:00 2001 From: argoexpert press Date: Thu, 17 Jul 2025 00:47:54 +0300 Subject: [PATCH] add new limit post in front and categrory --- category.php | 2 +- front-page.php | 2 +- header.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/category.php b/category.php index 641da5c..e01978e 100644 --- a/category.php +++ b/category.php @@ -11,7 +11,7 @@ $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $args = array( 'post_type' => 'post', - 'posts_per_page' => 13, + 'posts_per_page' => 15, 'paged' => $paged, 'category__in' => get_queried_object_id() ); diff --git a/front-page.php b/front-page.php index e364f87..df58033 100644 --- a/front-page.php +++ b/front-page.php @@ -8,7 +8,7 @@ $args = array( 'post_type' => 'post', // Или ваш пользовательский тип постов, если необходимо 'post__not_in' => [ $mainpost_id ], - 'posts_per_page' => 12, // Количество постов на странице + 'posts_per_page' => 16, // Количество постов на странице 'orderby' => 'date', // сортировка по дате 'order' => 'DESC', // по убыванию (сначала новые) 'ignore_sticky_posts' => 1, diff --git a/header.php b/header.php index 1c9123e..465b2bb 100644 --- a/header.php +++ b/header.php @@ -14,6 +14,7 @@ +