View difference between Paste ID: rfWeNKxH and p6RC71aM
SHOW: | | - or go back to the newest paste.
1-
function pm_fix_pagination($query) {
1+
function pm_fix_term_pages($query) {
2-
	if(!empty($query['category_name']) && !empty($query['name'])) {
2+
	if(!empty($query['taxonomy']) && !empty($query['term'])) {
3-
		unset($query['name']);
3+
		unset($query['term']);
4
		unset($query['taxonomy']);
5
	}
6
	return $query;
7-
add_filter('request', 'pm_fix_pagination', 9999);
7+
8
add_filter('request', 'pm_fix_term_pages', 9999);