I have installed one plugin : WP-Paginate
In the installation steps it says for function previous_posts_link() and next_posts_link() need to be changed in files index.php, archive.php and search.php.
But not able to find the function.
Any help…
This is how I do it for wp-pagenavi, it may help as a guide, I have not used WP Paginate.
In twenty eleven we have new functions instead of next_posts_link()
:
<?php twentyeleven_content_nav( 'nav-above' ); ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
This is how I use it here building the existing lines into the code.
<?php if(function_exists('wp_pagenavi') ) : ?>
<?php wp_pagenavi(); ?>
<?php else: ?>
<?php twentyeleven_content_nav( 'nav-above' ); ?>
<?php endif; ?>
HTH
David
This one will comeback a few times, I raised a new ticked with Trac asking the devs to make the function pluggable in a future twenty eleven release.
I also created a post and tested a child theme with the wp-pagenavi code added.
Also uploaded a sample index.php to pastebin.
HTH
David