next_posts_link() and previous_posts_link() not working
-
Hi I have the following code but the next _post_link and previous_posts_link are not printing the hyper link , it is rather printing text :
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post() ; echo '<h2>'; the_title(); echo '</h2>'; the_content(); endwhile ; ?> <?php next_post_link('Older Entries') ; ?> <?php previous_post_link('Newer Entries') ; ?> <?php else: ?> <h2>Nothing Found !!</h2> <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘next_posts_link() and previous_posts_link() not working’ is closed to new replies.