How To Remove older and newer posts links


Goto navigation.php in your wordpress theme then Select ALL and Paste this code :

 

<?php if ( $wp_query->max_num_pages > 1 ) { ?>

<?php /*?><div class=”navigation clearfix”>

<?php
if(function_exists(‘wp_pagenavi’)) {
wp_pagenavi();
} else {
?><div class=”alignleft”><?php next_posts_link( __( ‘<span>&laquo;</span> Older posts’, ‘themater’ ) );?></div>
<div class=”alignright”><?php previous_posts_link( __( ‘Newer posts <span>&raquo;</span>’, ‘themater’ ) );?></div><?php
} ?>

</div><?php */?>

<?php } ?>