How to query post by tags?

Using the Combo Blocks plugin, you can easily query posts by tags for Post Grid or Post Grid – Filterable Gutenberg blocks. 

To begin, insert the “Post Grid” or “Post Grid – Filterable” block.

From the List View make sure you’ve selected Post Query nested block. This selection is important to access all the available block settings for “Post Query”.

6yX4J7b

Now under Query Post => Add Query Params select the Tags option

GGbRD2J

Expand the Tags selection and here you need to pass the Tag slug that you want to query from.

0pOzDs1

Not sure how to find the Tag slug? Go to Posts => Tags, and look for the slug name under the Slug column.

yh8GYcX

That’s how you can query posts by tags for “Post Grid” or “Post Grid – Filterable” Gutenberg block. If you still need help, please create a support ticket on our forum.

Related Documentation