new limit frontpage
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' => 11,
|
'posts_per_page' => 13,
|
||||||
'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' => 10, // Количество постов на странице
|
'posts_per_page' => 12, // Количество постов на странице
|
||||||
'orderby' => 'date', // сортировка по дате
|
'orderby' => 'date', // сортировка по дате
|
||||||
'order' => 'DESC', // по убыванию (сначала новые)
|
'order' => 'DESC', // по убыванию (сначала новые)
|
||||||
'ignore_sticky_posts' => 1,
|
'ignore_sticky_posts' => 1,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<a href="https://forum.rusgrain.org?erid=2VSb5zKAzHv" target="_blank" style="display: block; width: 240px; height: 400px; text-decoration: none; margin: 0 auto;">
|
<a href="https://forum.rusgrain.org?erid=2VSb5zKAzHv" target="_blank" style="display: block; width: 240px; height: 400px; text-decoration: none; margin: 0 auto;">
|
||||||
<div id="banner" class="banner-left" style="position: relative; width: 100%; height: 100%; background: url('https://agroexpert.press/wp-content/uploads/2025/02/agroekspert-480h800-.jpg') no-repeat center/cover;">
|
<div id="banner" class="banner-left" style="position: relative; width: 100%; height: 100%; background: url('https://agroexpert.press/wp-content/uploads/2025/03/forum_4-marta-2025-goda_480h800.jpg') no-repeat center/cover;">
|
||||||
<div id="countdown" style="position: absolute; bottom: 24px; right: 0px; font-family: Impact, Charcoal, sans-serif; font-size: 15px; text-transform: uppercase; background-color: green; color: white; padding: 6px 15px 6px 19px; border-bottom: 2px solid white;">
|
<div id="countdown" style="position: absolute; bottom: 24px; right: 0px; font-family: Impact, Charcoal, sans-serif; font-size: 15px; text-transform: uppercase; background-color: green; color: white; padding: 6px 15px 6px 19px; border-bottom: 2px solid white;">
|
||||||
Осталось 00 дней
|
Осталось 00 дней
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user