Help Center

Displaying Future and Past Events in the Listing Grid Widget (Legacy)

Displaying Future and Past Events in the Listing Grid Widget (Legacy)

Showcase future and paste vents based on the date in the corresponding CPT's Date field. Output events in the Listing Grid and set Posts Query (Legacy) in it.

Before you start check tutorial

  • Elementor (Free version) or Block editor (Gutenberg)

  • JetEngine plugin installed and activated

    with Custom Post Type created and the Date Custom Field Type added. Posts within this post type should be filled in.

Firstly, you need to know that to query the Listing Grid by the Date type meta field; you can use Relative Time Formats

For instance, a CPT “Events” has the Date type meta field dubbed “event-date.” To show only future events in the Listing Grid, you should set the Posts Query section as follows:

posts query section settings

Now let’s learn how we can show past events. If you want to output the posts created in the previous month, make sure to set the Posts Query like so:

today macros

And that’s how you need to set this section in case you want to display the posts that were created in the last 30 days:

settings for posts created 30 days ago

That’s it! Just pay attention to Relative Time Formats and use them accordingly.

Was this article helpful?

Need help?

Ask Facebook community

Get answers from 22K Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.