Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

trainoasis

🎯
Focusing
Block or report user

Report or block trainoasis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mtx-z
mtx-z / wp-bootstrap4.1-pagination.php
Last active Aug 18, 2019
Wordpress Bootstrap 4.1 pagination (with custom WP_Query() and global $wp_query support)
View wp-bootstrap4.1-pagination.php
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
*
* @return string
* Accepts a WP_Query instance to build pagination (for custom wp_query()),
* or nothing to use the current global $wp_query (eg: taxonomy term page)
* - Tested on WP 4.9.5
You can’t perform that action at this time.