Hi I have this code:
if (...) {
echo '<li>';
previous_posts_link($pagenavi_options['prev_text'], $max_pages);
echo '</li>';
}
I'm wanting to add some code where it says ... that will detect the previous_posts_link function running before running the code. This is to prevent WordPress running the echos when the previous_posts_link is empty ie. their isn't a previous set of posts!
THANKS