Skip to content

Instantly share code, notes, and snippets.

View stackprogramer's full-sized avatar
🎯
Focusing

SP stackprogramer

🎯
Focusing
View GitHub Profile
@ediamin
ediamin / bootstrap-pagination.php
Created July 5, 2015 21:10
Bootstrap Pagination for WordPress
/*
* custom pagination with bootstrap .pagination class
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/
*/
function bootstrap_pagination( $echo = true ) {
global $wp_query;
$big = 999999999; // need an unlikely integer
$pages = paginate_links( array(