ignore stick mainpage

This commit is contained in:
2024-04-04 16:25:07 +03:00
parent 912b6fb9bc
commit b2e131cec8
2 changed files with 1 additions and 82 deletions

View File

@@ -11,6 +11,7 @@
'posts_per_page' => 10, // Количество постов на странице
'orderby' => 'date', // сортировка по дате
'order' => 'DESC', // по убыванию (сначала новые)
'ignore_sticky_posts' => 1,
'cat' => [-17, -20, -21]
);
$query = new WP_Query($args);