Fixed previus and next to no display in page
This commit is contained in:
parent
6dcb2f314e
commit
288d339d38
|
@ -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">←</span> Previous', 'tainacan-interface' ) ); ?></span>
|
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> Previous', 'tainacan-interface' ) ); ?></span>
|
||||||
<span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">→</span>', 'tainacan-interface' ) ); ?></span>
|
<span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">→</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' ); ?>
|
||||||
|
|
Loading…
Reference in New Issue