Home › Forums › Calendar Products › Events Calendar PRO › Showing Past Events in Essential Grid
- This topic has 4 replies, 4 voices, and was last updated 7 years, 9 months ago by
lisab.
-
AuthorPosts
-
May 23, 2018 at 1:17 pm #1537384
lisab
ParticipantLike the poster @gmha who posted May 15, 2018
Hi – We’re hoping to display past events in a certain category in an essential grid. Right now past events won’t show at all in any of our grids. Our past events page is functioning just fine, but we’re hoping to show a subset of past events instead of the entire list. Any advice? Maybe there is a parameter I could add to the grid to ask the past events to appear?I too want to do the same – this is for a yearly conference and we want to leave up the sessions from last year until we have new sessions. Originally I had set this up using Essential grid and had a nice little page with each session track in an Essential Grid display that the user could then click through to read more. To my surprise after the dates passed the Tribe Events disappeared. I thought maybe upgrading to pro would help. I’ve tried a myriad of work arounds none of which have worked. Site uses xtheme template with cornerstone framework.
I have customized the Tribe Events view with some additional functions so I am happy to work with code to make this happen.
I went to Essential grid’s help and used a function they had listed to show only past events and that has not worked.
Crossing my fingers you have some ideas to help — now that I am a pro user. I have looked at you integration page for this and also tried the suggestion for short codes. But confused as to how that might work when these are already based on Essential Grid shortcodes. /also tried adding WP parameters to Essential Grid to no avail. Also tested another Events plugin called Events Manager and past events did show… but I really want to use your plugin as it is far superior in all other situations. Not to mention I’ve done some customization that I don’t want to have to try and do over.
I’d be happy to give you admin access to the site if needed.
Site page is http://simconnectlive.com/facilitators/, if you go to anchor link http://simconnectlive.com/facilitators/#breakout-1 you’ll see a header Embracing Disruption & Innovation Sessions, and others — below each were numerous sessions that ended on April 13th 2018. The only one showing was a test I set up for 2019 just to see if the upcoming events were showing. The past events are showing up see this link to see these events http://simconnectlive.com/schedule/list/?tribe_paged=1&tribe_event_display=past, but really would like this to work with Essential grid.
this is the essential grid function I added to test a specific grid to show past events, no luck…
//for essential grid
// code can be added to your themes functions.php fileadd_filter(‘essgrid_query_caching’, ‘eg_stop_caching’, 10, 2);
add_filter(‘essgrid_get_posts’, ‘eg_mod_query’, 10, 2);// turn off caching for your grid
function eg_stop_caching($do_cache, $grid_id) {if($grid_id == 16) return false;
return true;}
function eg_mod_query($query, $grid_id){
// show only upcoming events in the future
if($grid_id == 36){$query[‘meta_query’] = array( ‘key’ => ‘_start_ts’, ‘value’ => current_time(‘timestamp’), ‘compare’ => ‘>=’, ‘type’=>’numeric’ );
$query[‘meta_key’] = ‘_start_ts’;
$query[‘meta_value’] = current_time(‘timestamp’);
$query[‘meta_value_num’] = current_time(‘timestamp’);
$query[‘meta_compare’] = ‘>=’;}
// show only events from the past
if($grid_id == 16){$query[‘meta_query’] = array( ‘key’ => ‘_start_ts’, ‘value’ => current_time(‘timestamp’), ‘compare’ => ‘<=’, ‘type’=>’numeric’ );
$query[‘meta_key’] = ‘_start_ts’;
$query[‘meta_value’] = current_time(‘timestamp’);
$query[‘meta_value_num’] = current_time(‘timestamp’);
$query[‘meta_compare’] = ‘<=’;}
return $query;
}
Thank you ahead for your help!!!!!!!!!!!!!
Lisa Bowser========================
PLEASE LEAVE FOR SUPPORT
Reporting the same issue as: https://theeventscalendar.com/support/forums/topic/showing-past-events-in-essential-grid/May 23, 2018 at 1:59 pm #1537423Andras
KeymasterHi Lisa,
After reviewing your request this essentially looks like a custom development task and so is outside of our stated scope of support.
With that being said, we’d love to help point you in the right direction.
If you’d prefer not to tackle this customization on your own, we may be able to assist you further. We do need to prioritize support requests from other customers at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help, we’ll be happy to do so. Please let us know if you’d like to go this route so that you can be added to this queue.
In the meantime, if there is any more information you can share (including mocks) that will help us to better understand what you are seeking please do feel free to add them to this ticket.
If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.
Thanks,
AndrasMay 23, 2018 at 2:22 pm #1537439lisab
ParticipantAndrás, thanks for getting back so quickly and YES I’d definitely like to be added to the support queue, “Please let us know if you’d like to go this route so that you can be added to this queue.
I have seen several entries similar to this so I’m sure it would be helpful to a good number of folks.
Sadly I have no screenshots of this previously, but I can work up a mockup of this by republishing some of these for next year. Happy to provide any further information that could help.
Thank you!
lisa bJune 1, 2018 at 9:15 am #1543906Barry
MemberJust confirming we added you to the custom dev request queue, Lisa. We’ll assess as soon as we have a moment and let you know if we can provide further help from there 🙂
June 18, 2018 at 9:10 pm #1555842Cliff
MemberHi, Lisa. Did you see https://theeventscalendar.com/knowledgebase/integrating-events-calendar-slider-revolution-essential-grid/ ?
It has some code snippets in that article that may be of interest to you.
Please let me know if this article helps at all.
July 10, 2018 at 9:35 am #1571780Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Showing Past Events in Essential Grid’ is closed to new replies.
