Support

Home Forums Event Espresso Premium Question regarding events grid view template

Question regarding events grid view template

Posted: May 22, 2017 at 5:26 am

Viewing 5 reply threads


aplauda

May 22, 2017 at 5:26 am

hi, i would like to know how can I setup to show only recent expired events on events grid view template?


Josh

  • Support Staff

May 22, 2017 at 9:56 am

Hi there,

You can set up a page to show only recent expired events with the grid view template by following these steps:

1) You place this shortcode on a page:

[ESPRESSO_GRID_TEMPLATE show_expired=true sort=DESC order_by=start_date limit=30]

You can adjust the “30” event limit to your preference.

2) You add the following code to your website:

https://gist.github.com/joshfeck/d68b3c6da61c92ce92c4f77a958a20de

You’ll need to change line 12 where it has past-events-page so it matches your page.

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


aplauda

May 23, 2017 at 8:18 am

Hi, the code it self worked like a charm,
but here is the issue, i’m trying to add it at the home page,
there is a place for next events and expired events,
now the next events are not showing anymore.

could you help me with that? use the grid tag 2 times in the same page, one showing next events, and the other expired?

thx


Josh

  • Support Staff

May 23, 2017 at 8:34 am

Hi there,
The code I shared with you is intended to be used on a page where it’s only showing expired events.

Can you explain a bit more of what you’re looking to accomplish? For example is the goal to show x number of upcoming events in ascending order, then a break, followed by x number of past events in descending order?


aplauda

May 23, 2017 at 10:24 am

Hi, for the exemple, at the home page, i have the slider… then under i have next events where i show the grid with the events, then under that i want to place a grid where it says see events results.. ( then you ask why would you want to show expired events) because our site is an sporting events sites so once the event is over, we want people to click and check out the results and picture gallery etc. I hope you now know what i mean.


Josh

  • Support Staff

May 23, 2017 at 10:49 am

Are you adding the shortcodes directly to a template file or into a home page editor box in the WP admin editor pages?

Viewing 5 reply threads

The support post ‘Question regarding events grid view template’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso