Skip to main content
6 events
when toggle format what by license comment
Apr 7, 2022 at 14:51 vote accept grzybowski1911
Apr 7, 2022 at 10:11 comment added Sally CJ See my answer :)
Apr 7, 2022 at 10:02 answer added Sally CJ timeline score: 2
Apr 7, 2022 at 3:43 comment added grzybowski1911 Ah yeah I see that now, thanks for the pointing that out. Probably staring at it too long.. So something the following should work? $tax_query_array = array('relation' => 'OR'); $industry_select ? array_push($tax_query_array, $tax_query_args ) : null ; $query->set( 'tax_query', $tax_query_array); }} ( I don't have a chance to try it out at the moment or I would just do that ), just asking for reference when I try tomorrow morning. Thanks.
Apr 6, 2022 at 23:11 comment added Sally CJ The 2nd $tax_query_array = array('relation' => 'OR'); overrides the previous array.. Also, is_archive() does not accept any parameters - use is_post_type_archive() to check for a specific post type archive.
Apr 6, 2022 at 22:58 history asked grzybowski1911 CC BY-SA 4.0