2025-06-03 23:50:58 +03:00
|
|
|
<?php get_header(); ?>
|
|
|
|
|
<div class="content-middle articles-wrapper">
|
|
|
|
|
<?php get_template_part('partials/rubrics-mobile'); ?>
|
|
|
|
|
<div class="section-title desktop">
|
2025-06-19 16:12:53 +03:00
|
|
|
<?php if (is_category()) : ?>
|
|
|
|
|
<h1 class="section-title__title"><?= get_queried_object()->name ?></h1>
|
2025-06-03 23:50:58 +03:00
|
|
|
<?php endif; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="articles-preview">
|
|
|
|
|
<?php
|
|
|
|
|
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
|
|
|
|
|
$args = array(
|
|
|
|
|
'post_type' => 'post',
|
|
|
|
|
'posts_per_page' => 13,
|
|
|
|
|
'paged' => $paged,
|
2025-06-19 16:12:53 +03:00
|
|
|
'category__in' => get_queried_object_id()
|
2025-06-03 23:50:58 +03:00
|
|
|
);
|
|
|
|
|
$query = new WP_Query($args);
|
|
|
|
|
?>
|
2025-06-19 16:12:53 +03:00
|
|
|
<?php get_template_part('partials/post-list', null, ['query' => $query]); ?>
|
2025-06-03 23:50:58 +03:00
|
|
|
</div>
|
|
|
|
|
<?php custom_pagination(); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php get_footer(); ?>
|