add adv partials
This commit is contained in:
24
category-en.php
Normal file
24
category-en.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php get_header( 'en' ); ?>
|
||||
|
||||
<div class="content-middle articles-wrapper">
|
||||
<?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, // Количество постов на странице
|
||||
'orderby' => 'date', // сортировка по дате
|
||||
'order' => 'DESC', // по убыванию (сначала новые)
|
||||
'ignore_sticky_posts' => 1,
|
||||
'cat' => get_expression_en()
|
||||
);
|
||||
$query = new WP_Query($args);
|
||||
?>
|
||||
<?php get_template_part('partials/post-list', null, ['large_first_image' => false, 'query' => $query]); ?>
|
||||
</div>
|
||||
<button class="articles-preview__show-next">More Read</button>
|
||||
</div>
|
||||
|
||||
<?php get_footer( 'en' ); ?>
|
||||
Reference in New Issue
Block a user