previous_posts_link next_posts_link not displayed
-
When you run a search on my blog (https://www.itauthor.com/wordpress/) you get just 5 results per page, and there’s no way to get any more.
I’ve read the Codex and various Forum postings and anything else I could find – all of which suggests that the way to add Older/Newer links at the bottom of the results page is by using previous_posts_link and next_posts_link.
However, I’ve added these to my search.php file without any luck. I’ve tried the following variations:
<div class="navigation"> <div class="previous"> <?php previous_posts_link('Next Entries »') ?> </div> <div class="next"> <?php next_posts_link('« Previous Entries') ?> </div> </div> <p><?php next_posts_link('? Previous Entries /') ?> <a href="<?php echo get_settings('home'); ?>" title="return home">Home</a> <?php previous_posts_link('/ Next Entries ?') ?></p> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous') ?></div> <div class="alignright"><?php previous_posts_link('Next »') ?></div> </div>
The Next/Previous links just don’t appear. When I look at the source HTML I just get empty divs.
Can anyone suggest a solution?
What’s stopping these functions producing any output?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘previous_posts_link next_posts_link not displayed’ is closed to new replies.