Tell me more ×  i m applying pagination on archive.php, but the
pagination links not working and going on 404.php. my code is
below, i did also changed permalink setting, also did set to
default but failed. it display pagination but links are broken.
please guide me if anyone can. thanks alot  $temp = $wp_query;
$wp_query= null; $wp_query = new WP_Query();
if(function_exists('wp_pagenavi')) { share|improve this question
add comment  1 Answer  which version of WP do you use? For
WordPress 3.x or higher   And you must go to the
settings>permalinks and just hit save without changing anything,
but WP is triggering something.  Hope it helps  share|improve
this answer add comment  Your Answer