Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kenny Poncio kenpoc4

🏠
Working from home
View GitHub Profile
@mtx-z
mtx-z / wp-bootstrap4.4-pagination.php
Last active Sep 23, 2021
Wordpress 5.4 Bootstrap 4.4 pagination (with custom WP_Query() and global $wp_query support) (UPDATED for Bootstrap 5: https://gist.github.com/mtx-z/af85d3abd4c19a84a9713e69956e1507)
View wp-bootstrap4.4-pagination.php
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
* @param array $params
*
* @return string|null
*
* UPDATE for Bootstrap 5.0: https://gist.github.com/mtx-z/af85d3abd4c19a84a9713e69956e1507
*