Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit eb6da12

Browse files
author
yoarts
committed
Merge pull request #5 from ashfame/flip_pagination_direction
fix pagination direction
2 parents 6eafe4d + 655d0ab commit eb6da12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

functions.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ function flat_paging_nav() {
7676
<div class="nav-links">
7777

7878
<?php if ( get_next_posts_link() ) : ?>
79-
<div class="nav-previous"><?php next_posts_link( __( '<i class="fa fa-chevron-left"></i>', 'flat' ) ); ?></div>
79+
<div class="nav-next"><?php next_posts_link( __( '<i class="fa fa-chevron-right"></i>', 'flat' ) ); ?></div>
8080
<?php endif; ?>
81+
8182
<?php if ( get_previous_posts_link() ) : ?>
82-
<div class="nav-next"><?php previous_posts_link( __( '<i class="fa fa-chevron-right"></i>', 'flat' ) ); ?></div>
83+
<div class="nav-previous"><?php previous_posts_link( __( '<i class="fa fa-chevron-left"></i>', 'flat' ) ); ?></div>
8384
<?php endif; ?>
85+
8486
<div class="nav-current-page"><?php echo sprintf( __( 'Page %1$s of %2$s', 'flat' ), $paged, $wp_query->max_num_pages ) ?></div>
8587

8688
</div>

0 commit comments

Comments
 (0)