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

Commit 655d0ab

Browse files
committed
fix pagination direction
1 parent 5a97402 commit 655d0ab

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)