Taxonomy Filters (Pro)
Categories, tags, products categories and formats are some of the more commonly known taxonomies. Use this feature to show a set of posts for a specific taxonomy.
Last updated
Categories, tags, products categories and formats are some of the more commonly known taxonomies. Use this feature to show a set of posts for a specific taxonomy.
Last updated
Create a Card and assign a View as usual. (See Creating Your First Card).
Switch to the Taxonomy Filters tab.
Click on the Add Rule button.
Click on the Add Taxonomy button.
In the Taxonomy dropdown, select which taxonomy you want to use.
For the Comparison field, select how you would like to compare the taxonomy.
Then select Term from the dropdown that will be used for comparison.
Click Update to save your Card.
Note: adding another Rule will create a relation to control how taxonomy rules will be joined within the taxonomy query.
By default, the Taxonomy filter expects a statically defined term, such as creating a Card to query by the 'horror' genre. However, sometimes you need to define this argument dynamically. For this purpose, there is a 'Dynamic Term' field.
The 'Dynamic Term' field becomes visible only when the 'Static Term' field has no selection, and visa versa.
The 'Dynamic Term' field supports the following values:
For archive and category pages.
For specific meta fields. For example, if you have a page with a Taxonomy meta field and need to query all posts with the term selected on the current page, you can use $meta$.field-name
.
Allows defining the argument dynamically from custom shortcode arguments, e.g., [avf_card custom-arguments="genre=my-genre-slug"]
.
Note: This method is useful for manually defined cases. If you need to get the value from the current page meta, using the $meta$
mentioned above.
Note: Do you want to customize a query (WP_Query) that is used to get posts for a Card, but the option is missing in the UI? You can do this using our filters. Read more here