correct intreview

This commit is contained in:
argoexpert press
2025-06-02 10:41:32 +03:00
parent 8596dd84bb
commit 189b7822df
4 changed files with 18 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ $args = [
'post_type' => 'post',
'post_status' => 'publish',
'paged' => $paged,
'posts_per_page' => get_option('posts_per_page'),
'posts_per_page' => 13,
'ignore_sticky_posts' => true,
'no_found_rows' => false // Обязательно для пагинации!
];

View File

@@ -25,12 +25,15 @@
$formatted_date = format_event_date(); ?>
<a href="<? the_permalink(); ?>">
<div class="article-item">
<?if (has_post_thumbnail()):?>
<div class="interview-item__image-container">
<?= show_post_image(); ?>
<?//=show_post_image(); ?>
<?=render_webp_picture_by_post( null, 'news-list-picture'); ?>
<button class="item-video__button subtitle-20">
<img src="<?= get_asset('icons/play.svg') ?>" alt="" /> Интервью
</button>
</div>
<?endif?>
<div class="article-item__text">
<div class="article-time">
<img src="<?= get_asset('icons/time.svg') ?>" alt="" />

View File

@@ -90,6 +90,13 @@
'image' => 'https://agroexpert.press/wp-content/uploads/2024/07/seseg-zhigzhitova.jpg'
],
'16' => [
'name' => 'Богдан Чайковский',
'position' => 'Автор',
'image' => 'https://agroexpert.press/wp-content/uploads/2025/06/ed_chaikovsky.jpg'
],
];?>

View File

@@ -19,8 +19,6 @@ if ( in_category('interviews') ) {
} else {
get_template_part('partials/latest-interview-post');
}
get_template_part('partials/forest-informer');
?>
<?php if (is_front_page()) : ?>
@@ -35,13 +33,19 @@ get_template_part('partials/forest-informer');
<?php endif; ?>
<?if (function_exists('krutilka_placement')):?>
<div class="banner-left desktop">
<?=krutilka_placement( 'left-desktop-1' );?>
</div>
<?php get_template_part('partials/forest-informer');?>
<div class="banner-left desktop">
<?=krutilka_placement( 'left-desktop-2' );?>
</div>
<div class="banner-left desktop">
<?=krutilka_placement( 'left-desktop-3' );?>
</div>