correct paginator
This commit is contained in:
@@ -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' ); ?>
|
||||||
@@ -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(); ?>
|
||||||
Reference in New Issue
Block a user