Skip to main content

How to display posts with date period from metafields

Updated over a month ago

Be advised it will work only if your date metafield is saved in Timestamp

This requires enabling the 'Save as timestamp' option in your custom date field settings to ensure that dates are stored in Unix timestamp format.


You need to create Posts Query with query builder
First select post type and post status


Then in Meta Query add two clauses:

Start Date less then or equal today

and End day greater or equal today today


Relation is AND
Type Numeric

And then apply your query in Listing grid widget

JetEngine also supports other widgets and views where you can apply the configured query to display filtered results dynamically.

Did this answer your question?