Support

Home Forums Event Espresso Premium Filter on event start date in url

Filter on event start date in url

Posted: March 12, 2019 at 5:08 am


rsthrive

March 12, 2019 at 5:08 am

Hi All,

I was wondering if if would be possible to modify this url to filter on the start date so that any events that have already been started are not returned.

/events?calculate=image_large&include=Term_Taxonomy.Term.slug,Datetime,Datetime.Ticket,Datetime.DTT_EVT_start&order_by[Datetime.DTT_EVT_start]=DESC&limit=50

Many thanks


Josh

  • Support Staff

March 12, 2019 at 7:48 am

Hi,

You can add the following to the url:

&where[Datetime.DTT_EVT_start][]=>&where[Datetime.DTT_EVT_start][]=
then add the current date & time, formatted and urlencoded. For example if you’re using PHP to build the url, you could use this to get/format the date & time:

<?php urlencode(date("Y-m-d H:i:s")); ?>

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 1 week ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!