correct paginator

This commit is contained in:
argoexpert press
2025-07-20 13:59:40 +03:00
parent 4c66dbc08b
commit 6fab76bf4b
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ $has_video = ($current_category->slug === 'opinion') ? true : false;
?> ?>
<div class="rfo__rubric"><?=$current_category->name; ?></div> <h1 class="rfo__rubric"><?=$current_category->name; ?></h1>
<div class="articles-columns-rfo"> <div class="articles-columns-rfo">
<?php <?php
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
@@ -52,6 +52,6 @@ $has_video = ($current_category->slug === 'opinion') ? true : false;
?> ?>
<?php get_template_part('rfo/post-list', null, ['query' => $query , 'has_video' => $has_video]); ?> <?php get_template_part('rfo/post-list', null, ['query' => $query , 'has_video' => $has_video]); ?>
</div> </div>
<?php custom_pagination( null, 'pagination pagination__rfo' ); ?> <?php custom_pagination( $query, 'pagination pagination__rfo' ); ?>
</div> </div>
<?php get_footer( 'rfo' ); ?> <?php get_footer( 'rfo' ); ?>

View File

@@ -19,6 +19,6 @@
?> ?>
<?php get_template_part('partials/post-list', null, ['query' => $query]); ?> <?php get_template_part('partials/post-list', null, ['query' => $query]); ?>
</div> </div>
<?php custom_pagination(); ?> <?php custom_pagination( $query ); ?>
</div> </div>
<?php get_footer(); ?> <?php get_footer(); ?>