Skip to main content

How to display posts with date period from metafields

Updated over a year ago

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


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

Did this answer your question?