A quick question. So I have created a loop in a new file called sidebar-extra.php
which I include via the header.php
into my single.php
file.
Problem: when I go to a post (single.php), I can't see this navigation, while I can see it on my homepage, where I also include sidebar-extra.php
<ul class="pagination">
<li class="page-item"><?php previous_posts_link('« Previous posts') ?></li>
<li class="page-item"><?php next_posts_link('Next posts »') ?></li>
</ul>
Is there a way I can make sure that my sidebar-extra.php
is showing the post navigation everywhere, including on single.php
?