Categoría: BRICKS BRICKS/TERMS/QUERY_VARS PRO
-
Filtering a Bricks Terms query on Term archive pages
Consider this scenario: CPT: productTaxonomy 1: product-categoryTaxonomy 2: product-type Requirement: On product category archives, show product type names but only those that the current product category (posts assigned to the current product category) has. This Pro tutorial shows how this can be done using bricks/terms/query_vars Bricks filter. Step 1 Edit your product category archive template…
-
Prefiltering Bricks Terms Query Loop
Let’s say there’s a Events CPT with a ‘Event Year’ custom taxonomy. Sample event year names could be: 2021, 2022, 2024, 2025, 2028 etc. We can set up a Terms query in Bricks to output these terms. Result: The reason 2021 is not present is because there are no posts that have been categorized with…