Fixed previus and next to no display in page

This commit is contained in:
Fabiano Alencar 2018-11-19 12:08:20 -02:00
parent 6dcb2f314e
commit 288d339d38
1 changed files with 6 additions and 4 deletions

View File

@ -13,10 +13,12 @@
<div class="mt-3 tainacan-single-post"> <div class="mt-3 tainacan-single-post">
<?php get_template_part( 'template-parts/single-post' ); ?> <?php get_template_part( 'template-parts/single-post' ); ?>
</div> </div>
<div class="row justify-content-between"> <?php if ( ! is_singular( 'page' ) ) : ?>
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'tainacan-interface' ) ); ?></span> <div class="row justify-content-between">
<span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'tainacan-interface' ) ); ?></span> <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'tainacan-interface' ) ); ?></span>
</div> <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'tainacan-interface' ) ); ?></span>
</div>
<?php endif; ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<?php _e( 'Nothing found', 'tainacan-interface' ); ?> <?php _e( 'Nothing found', 'tainacan-interface' ); ?>