goodhelp Profile Topics Started Replies Created Engagements Favorites Forum Replies Created list of topics you have created till now. goodhelpParticipant 17 December 2012 at 02:14 Posted in : Portfolio – Pagination? #2698 I have already solved In function.php add this function ” function my_pagination($pages = ”, $range = 2) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo “”; if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<<“; if($paged > 1){echo “<“;}else{echo “<“;} for ($i=1; $i = $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) { echo ($paged == $i)? "“.$i.”“:”“.$i.”“; } } if ($paged < $pages){echo ">“;}else{echo “>“;} if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo ">>“; echo “\n”; } }” Then in file portfolio.php change this at line 102 “$args_portfolio = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => -1 );” in “$args_portfolio = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 9, ‘paged’ => $paged );” 9 = number of item that you would show per page and add this line “my_pagination($loop_portfolio->max_num_pages);” where do you want to appear the pagination Bye goodhelpParticipant 4 December 2012 at 00:17 Posted in : Portfolio – Pagination? #2620 Hi have you finished the pagination in the portfolio? Gino Viewing 2 posts - 1 through 2 (of 2 total)