Finally, I’ve found the solution HERE!!
There are two undocumented functions that will return the Next Posts and Previous Posts URLs:next_posts ()
& previous_posts ()
The syntax for creating a navigation with anchor links would be something like:
<a href="<?php previous_posts(); ?>#lemonlines">« Go Forward in Time</a> ∞ <a href="<?php next_posts(); ?>#lemonlines">Go Back in Time »</a>
The problem here is that both links will still show even when we are in home or in the last page. To show only appropriate links use:
<?php
$the_last_page = $wp_query->max_num_pages;
$loaded_page = intval($paged);
?>
<?php if ( $the_last_page == $loaded_page) { ?> // if is the last page
<a href="<?php previous_posts(); ?>#anchor">« Go Forward in Time</a> // only link to newer posts
<?php } elseif ($loaded_page == 0) { ?> // if is home
<a href="<?php next_posts(); ?>#anchor">Go Back in Time »</a> // only link to older posts
<?php } else { ?> //otherwise
<a href="<?php previous_posts(); ?>#anchor">« Go Forward in Time</a> ∞ <a href="<?php next_posts(); ?>#anchor">Go Back in Time »</a> // links to newer and older posts
<?php } ?>
Cheers,
gelo