How to get_queried_object on multiple objects?

You almost had it with $_GET['zap_audience'], but not quite, since it isn’t passed in as a GET variable.

It is however a query variable, so try these:

$post_type = get_query_var( 'post_type' );
$audience  = get_query_var( 'zap_audience' );
$city      = get_query_var( 'zap_cities' );

Also +1 for prefixing your taxonomy types with zap_

Leave a Comment