I’m having a senior moment with this, and think there must be a simple way to do this.
I have a gallery that is accepting multiple $_GET values to filter content. This content is used in meta_query arrays to filter custom post data. This is simple enough when I place the arrays inside the meta_query array. Everything works as expected. However, I want to be able to have an author text search override a drop-down name select, meaning that I would love to house all of my separate meta_query arrays in a pre-defined variable, then just pop that into the wp_query object.
the problem with just adding arrays to something like $filter is that the keys stop the query from executing properly. array_values() doesn’t help either.