add new limit post in front and categrory
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="yandex-verification" content="209d13da5a697e41" />
|
||||
<meta name="msvalidate.01" content="3A6969690CBE2633E5EE3F5B0F7EF10D" />
|
||||
<?php wp_head(); ?>
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript" >
|
||||
|
||||
Reference in New Issue
Block a user