cOrrect mainnews in mobail

This commit is contained in:
2024-04-03 22:58:59 +03:00
parent 83eaa7246b
commit c6365d6263
4 changed files with 3557 additions and 6 deletions

View File

@@ -1,12 +1,13 @@
<?php get_header(); ?>
<div class="content-middle articles-wrapper">
<?php get_template_part('partials/pinned-post-mob'); ?>
<?php include(get_template_directory().'/partials/pinned-post-mob.php');?>
<?php get_template_part('partials/rubrics-mobile'); ?>
<div class="articles-preview">
<?php
$args = array(
'post_type' => 'post', // Или ваш пользовательский тип постов, если необходимо
'post__not_in' => [ $mainpost_id ],
'posts_per_page' => 10, // Количество постов на странице
'cat' => [-17, -20, -21]
);