Support

Home Forums Event Espresso Premium Table View Addon shows expired events

Table View Addon shows expired events

Posted: November 9, 2014 at 10:54 pm

Viewing 3 reply threads


Abhishek Jain

November 9, 2014 at 10:54 pm

On my website http://esci.edu.in the table view addon or EE4 shows events even after they have ended.

Here is the shortcode i use [ESPRESSO_EVENTS_TABLE_TEMPLATE limit="10" show_expired="FALSE" template_file="../../../themes/esci-child/espresso/templates/espresso-events-table.php" order_by="start_date" table_striping="false" table_paging="false"]

I have set show_expired=”FALSE” but still it shows the expired events. You can check that here http://esci.edu.in

In the Upcoming Trainings section the table shows events which expired 3 days back. I have even emptied my cache but it doesn’t work.

Am I doing something wrong? or is this a bug with the table view addon?


Tony

  • Support Staff

November 10, 2014 at 3:51 am

Hi Abhishek Jain,

It turns out the TABLE_TEMPLATE defaults to show_expired=False

So if you remove show_expired=”FALSE” from your shortcode are the events then removed?


Abhishek Jain

November 10, 2014 at 3:56 am

If it is the default, then it shouldn’t matter even if I use it.

It does work. So it must be a bug then?


Tony

  • Support Staff

November 10, 2014 at 4:05 am

Yes this is a bug.

I just wanted to confirm the expected events were removed.

What’s happening is show_expired is being set to the string “FALSE”.

if(“FALSE”) {} will actually return as TRUE, as almost any string will do.

show_expired=0 should also work correctly, however we have a fix for this included within the next updates to the Template Add-ons.

Viewing 3 reply threads

The support post ‘Table View Addon shows expired events’ 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