Hi Victor In terms of our website, we want to have a page for each day, showing entries for that day, for the duration of our event. It wouldn't be suitable to put within one page. Thank you, your code hint frm-set-get shortcode was just what I needed as I was off down the wrong rabbit hole. I have made a page template for each of these pages which shows both the entry form and the view for the event. We want to view to be restricted to showing entries only for a specific date.
The following code does just that!
$fromdate = getDateForPage() - 1;
$todate = getDateForPage() + 1;
do_shortcode('[frm-set-get date_range_start="'.$fromdate.'" date_range_end="'.$todate .'"]');
do_shortcode('[display-frm-data id='.tw_get_view_ID().' ]');
Combined with using a param name in the filter of the UI as in attached picture. [get_param=date_range_start] Happy days!
Please login or Register to submit your answer