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;
|
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'posts_per_page' => 13,
|
'posts_per_page' => 15,
|
||||||
'paged' => $paged,
|
'paged' => $paged,
|
||||||
'category__in' => get_queried_object_id()
|
'category__in' => get_queried_object_id()
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'post', // Или ваш пользовательский тип постов, если необходимо
|
'post_type' => 'post', // Или ваш пользовательский тип постов, если необходимо
|
||||||
'post__not_in' => [ $mainpost_id ],
|
'post__not_in' => [ $mainpost_id ],
|
||||||
'posts_per_page' => 12, // Количество постов на странице
|
'posts_per_page' => 16, // Количество постов на странице
|
||||||
'orderby' => 'date', // сортировка по дате
|
'orderby' => 'date', // сортировка по дате
|
||||||
'order' => 'DESC', // по убыванию (сначала новые)
|
'order' => 'DESC', // по убыванию (сначала новые)
|
||||||
'ignore_sticky_posts' => 1,
|
'ignore_sticky_posts' => 1,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<meta name="msapplication-TileColor" content="#da532c">
|
<meta name="msapplication-TileColor" content="#da532c">
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
<meta name="yandex-verification" content="209d13da5a697e41" />
|
<meta name="yandex-verification" content="209d13da5a697e41" />
|
||||||
|
<meta name="msvalidate.01" content="3A6969690CBE2633E5EE3F5B0F7EF10D" />
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
<!-- Yandex.Metrika counter -->
|
<!-- Yandex.Metrika counter -->
|
||||||
<script type="text/javascript" >
|
<script type="text/javascript" >
|
||||||
|
|||||||
Reference in New Issue
Block a user