Paged posts – how to use numbers and next/previous links?

The function you’re using, wp_link_pages­Codex, does not have the feature you’re looking for by default. However you can easily extend it by using a callback function, registered as a filter on that functions arguments: add_filter(‘wp_link_pages_args’, ‘wp_link_pages_args_prevnext_add’); The filter will then modify the parameters that are used in that function on-the-fly and inject the missing links … Read more

How to determine if theres a next page

You can use get_previous_posts_link and get_next_posts_link to determine if they exists like this: $prev_link = get_previous_posts_link(__(‘&laquo; Older Entries’)); $next_link = get_next_posts_link(__(‘Newer Entries &raquo;’)); // as suggested in comments if ($prev_link || $next_link) { echo ‘<ul class=”navigation”>’; if ($prev_link){ echo ‘<li>’.$prev_link .'</li>’; } if ($next_link){ echo ‘<li>’.$next_link .'</li>’; } echo ‘</ul>’; } Hope This Helps