1,855 reputation
11761
bio website
location
age
visits member for 2 years, 11 months
seen Oct 9 at 16:14

Nov
23
accepted Using in 'category_name' in '$query->set();'?
Nov
23
asked Using in 'category_name' in '$query->set();'?
Nov
22
comment Query set using tax_query with relation 'OR' modifies category object?
Did you take a look at this question? wordpress.stackexchange.com/q/124100/10691 -- I have more details in there. This problem with the function persists even with Twenty Thirteen.
Nov
22
comment Query set using tax_query with relation 'OR' modifies category object?
Now the error is gone, but the primary issue stated in the question still persists i.e. nothing's changed. :/
Nov
22
comment Query set using tax_query with relation 'OR' modifies category object?
I get this error when using array_unshift(): "Warning: array_unshift() expects parameter 1 to be array, null given in /var/www/.../functions.php on line ...". As stated at the end of my question, $tax_query = $query->get( 'tax_query' ); is returning empty, not an array as it should. This is weird, but it happens even the default Twenty Thirteen theme. And also please take a look at the related question added as a link in the question, or here: wordpress.stackexchange.com/q/124100/10691
Nov
22
revised Query set using tax_query with relation 'OR' modifies category object?
added 138 characters in body
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
[Edit removed during grace period]
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
added 739 characters in body
Nov
22
revised Query set using tax_query with relation 'OR' modifies category object?
added 118 characters in body
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
added 611 characters in body
Nov
22
revised Multisite Conditional (if blog_id?) in a page template?
added 2 characters in body
Nov
22
revised Multisite Conditional (if blog_id?) in a page template?
added 1521 characters in body
Nov
22
answered Multisite Conditional (if blog_id?) in a page template?
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
added 4 characters in body
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
added 1537 characters in body
Nov
22
revised When/why does '$query->get( 'tax_query' );' return empty?
added 1537 characters in body
Nov
22
revised Query set using tax_query with relation 'OR' modifies category object?
edited body
Nov
22
asked When/why does '$query->get( 'tax_query' );' return empty?
Nov
22
comment Query set using tax_query with relation 'OR' modifies category object?
Posts that belong to the current category archive page's term OR the 'intl' category are being shown. But it appears that the category object for the page is set to point to 'intl' category and NOT the category archive page's term. For instance, <?php single_cat_title(); ?> shows "International" instead of "UK" for UK's archive page.
Nov
21
revised Query set using tax_query with relation 'OR' modifies category object?
edited body