I’m using the below code to only show posts on my archive page that have a certain value in post meta. It works fine in the default wp template, however when i create a Bricks archive template with a query loop set to default, the pre_get_posts doesn’t work. (Meaning it shows all posts)
I will try to reproduce that issue and get back to you as soon as I have any findings. In the meantime please try to use the bricks/posts/query_vars hook instead:
In fact you actually don’t need any hook for what you’re trying to achieve. You can use the query builder in your archive template to add your meta query as the query parameters you specify get merged with the main query by default.