I was wondering if it was possible to use posts_nav_link in a template page that is not standard (i.e index.php, category.php...)
something like this:
$posts = get_posts('numberposts=5');
foreach($posts as $post) :
"><?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endforeach; ?>
<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
I've tried this of course but it does not seem to work.
Are there alternatives that cam be used?