You know…at the bottom of a feed page, the list of how many other older posts they can view if they want
$categories = get_term_by('name','news','category'); $number_in_cat = $categories->count; $num_of_pages = ceil($number_in_cat/$posts_per_page); $offset = $_GET['offset_news']; $current_offset = 0; for($c=1;$c<=$num_of_pages;$c++) { if (empty($current_offset)) { $current="current_pagenation"; }else{ $current=""; } if (!empty($offset)) { if ($current_offset/$offset == 1 ) { $current="current_pagenation"; }else{ $current=""; } } echo "<a href='http://blackburn.edu/news-events?offset_news=$current_offset' class='pagenation $current'>$c</a>"; $current_offset = $current_offset + $posts_per_page; }