Skip to content

Portfolio widget: How to query on multiple tags? #2798

Answered by gcushen
fbaldi6 asked this question in Q&A
Discussion options

You must be logged in to vote

We've now added experimental support for querying on multiple tags in 005e361.

E.g. filter on multiple tags:

  filter_button:
    - name: All
      tag: '*'
    - name: Machine Learning
      tag: ML
    - name: Computer Vision
      tag: CV
    - name: NLP
      tag: NLP
    - name: CV or NLP
      filter: '.js-id-cv, .js-id-nlp'
    - name: ML and NLP
      filter: '.js-id-ml.js-id-nlp'

Use lowercase tag names in filters, so 'CV' becomes .js-id-cv.

For details on how to construct filters, see https://isotope.metafizzy.co/filtering.html

Older versions

For older versions, the way to achieve this behavior is to pre-process your content to tag it based on your criteria. This can be achieve…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gcushen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants