Filter: bricks/query/archive_query_arguments
Filters the list of WP_Query arguments that are preserved from the main WordPress query when “Is main query” is enabled in a query loop. This ensures that essential archive parameters (like pagination, taxonomy terms) are passed to the Bricks query.
Parameters
Section titled “Parameters”$arguments(array): Array ofWP_Queryargument keys (e.g.,post_type,posts_per_page,tax_query).
Example usage
Section titled “Example usage”add_filter( 'bricks/query/archive_query_arguments', function( $arguments ) { // Example: specific custom query var from the main query $arguments[] = 'my_custom_var';
return $arguments;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.