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>
<?php if ( ! is_singular( 'page' ) ) : ?>
<div class="row justify-content-between"> <div class="row justify-content-between">
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'tainacan-interface' ) ); ?></span> <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'tainacan-interface' ) ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'tainacan-interface' ) ); ?></span> <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'tainacan-interface' ) ); ?></span>
</div> </div>
<?php endif; ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<?php _e( 'Nothing found', 'tainacan-interface' ); ?> <?php _e( 'Nothing found', 'tainacan-interface' ); ?>