Posted: October 31, 2014 at 9:46 am
Hi, this option is not working for me on either the grid or the table. When I toggle this for the Calendar, it doesn’t show Sold Out events. I’d like this to be true for the Grid and the Table as well. Thanks |
|
Hi Michael, We have a fix for this due out with the next version of the Templates. Currently if you use show_expired=0 that should work as expected. |
|
thanks Tony, but I’m not having luck with that shortcode either. Also, can you let me know the best way for me to keep my grid and table template edits after an upgrade? Currently I have made edits to each template directly. I know I can copy my edited templates over after each update, but I think there is a better way. |
|
Hi, You can copy the template files from here: wp-content/plugins/name-of-template-addon/templates …to here: wp-content/uploads/espresso/templates — |
|
does it need a sub-folder with the plugin name? thanks |
|
No it doesn’t. I checked one of the recent tutorials that I created for the table template: https://gist.github.com/lorenzocaum/6202e12ab276c08fc9dd — |
|
Checking back in on this: Tony, the shortcode you provided is not working for me for Sold Out events. |
|
Hi Michael, Expired events are events in which all of the datetimes have passed so Sold out events are not classed as expired. |
|
OK, got it. The Calendar plugin, however, treats Sold Out events as Expired. That is, if you aren’t showing Expired events on the Calendar, then Sold Out events will not show. My goal is to not show SOld Out events in the Grid and the Table. Is this possible? Thanks |
|
ah, I got it. sorry-trying to meet a deadline. |
|
disregard-wrong thread |
|
Hi Michael, It turns out the there’s a bug in the calendar add-on that makes it so the sold out events don’t display. Just so you’re aware on the next update Sold Out Events will show, but we’re adding a filter to exclude them in the calendar. With the grid template, it’s possible to use the One thing to keep in mind when building the query is if there are multiple tickets for one event, you’ll need to make sure the query excludes the event if all the tickets are sold out. |
|
Thanks Josh. This is a bit beyond me right now but I will return to it when I have time. |
|
Hi–I’m able to use show_expired=0 on the grid, but it doesn’t work on the table. I tried putting it at different places in the shortcode in case the order mattered, doesn’t seem to. tested this on 4.4.5 with table 1.2 |
|
also, how can I show more than 10 events per page in the table? thank you |
|
The default for the show_expired attribute is false. So completely removing the show_expired attribute from the shortcode has the same effect as show_expired=false (when functioning correctly) By default expired events are events in which all of the datetimes have passed that have passed. To set the number of events per page add the table_pages parameter, for example ‘table_pages=20’ would set the pages to show 20 events each. |
|
thanks Tony. Removing the parameter fixed show_expired for the table. But setting table_pages breaks the table; no events are shown when set. |
|
That’s strange, here is the shortcode I’m using: [ESPRESSO_EVENTS_TABLE_TEMPLATE table_pages = 20 template_file = espresso-events-table-template-toggle.template.php] And the output – http://take.ms/SOsDq Are you using a customised template? |
|
ah-that worked for me. Putting that as the last parameter before the template_file, and removing the comma! thanks |
|
No Problem, I’m glad this is now working for you 🙂 |
|
The support post ‘Grid/Table show_expired = false’ 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.