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.
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”.
Now under Query Post => Add Query Params select the Date Query option.
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.
Here you can see I’m trying to query posts from the year 2099! As expected, no post was found.
That’s how you can query posts by date. If you still need help, please create a support ticket on our forum.