How To Add Pagination To WordPress
Step 1: Put the following code into the template function file functions.php of the WordPress theme you are using. function kriesi_pagination($query_string){ global $posts_per_page, $paged; $my_query = new WP_Query($query_string .”&posts_per_page=-1″); $total_posts = $my_query->post_count; if(empty($paged))$paged = 1; $prev = $paged – 1;...