ZUsing the Combo Blocks plugin, you can easily query posts by date for Post Grid or Post Grid – Filterable Gutenberg blocks.
To begin, insert the “Post Grid” or “Post Grid – Filterable” block.
![How to query post by date? 1](https://i.imgur.com/PxTNXsQ.png)
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”.
![How to query post by date? 2 6yX4J7b](https://i.imgur.com/6yX4J7b.png)
Now under Query Post => Add Query Params select the Date Query option.
![How to query post by date? 3 T5Zprr3](https://i.imgur.com/T5Zprr3.png)
Here you can select the query arguments like year, month, week, day, etc. We’ve added a variety of options to choose from. For testing purpose let’s select the Year query argument.
![How to query post by date? 4 IvftJ3O](https://i.imgur.com/IvftJ3O.png)
Here you can see I’m trying to query posts from the year 2099! As expected, no post was found.
![How to query post by date? 5](https://i.imgur.com/n9hhxRL.png)
That’s how you can query posts by date. If you still need help, please create a support ticket on our forum.