Okay
  Public Ticket #1841461
Showing events in the past
Closed

Comments

  • blendit started the conversation

    Hi is it possible to also show events in the past? Searched for it in your docs but can't find it.

    Thanks in advance!

    Greetings Joost

  •  894
    Zhivko replied

    Hi,

    Try following shortcode:

    [stachethemes_ec min_date=2018-01-01 max_date=2019-12-31 start_date=2018-01-01 reverse_agenda_list=1] 

    start_date - The calendar date on load. By default it is set to today's date.




    Stachethemes Developer

  •  1
    caiusblg replied

    Hi,

    i'm creating a website for an agency that organize events and I would like to do a page with past events from 2011 to last year. I tried shortcode you suggest here but it didn't works

    Any advice?

    Thanks a lot
    Claudio

  • blendit replied

    Add first the shortcode you suggested works like charm. But now it won't show events that we're in the first weeks of january this year in the PAST EVENTS list. Only 2018 events.

  •  1
    caiusblg replied

    My need is to show events from 2011 to last year. I tried to change dates but it didn't works

  •  94
    Valentin replied

    You can try something like this

    [stachethemes_ec min_date=2018-01-01 max_date=2018-12-31]

    Just change the dates.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  1
    caiusblg replied

    Don't know what i'm doing wrong... When i check the page, I still receving message "You have no events for this month" :/

    https://www.em-corporation-agency.it/eventi-history/

  •  1
    caiusblg replied

    No helping hand??? :(

    Even if i set dates, page still show "You have no events for this month"

  •  94
    Valentin replied

    Show me what the shordcode you are using look like

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • blendit replied

    [stachethemes_ec min_date=2018-01-01 max_date=2019-12-31 start_date=2018-01-01 reverse_agenda_list=1]

    shortcode you provided works correctly....but i can't see the past events already been in januari 2019

    tried the following shortcode

    [stachethemes_ec min_date=2018-01-01 max_date=2019-12-31 start_date=2018-01-01 reverse_agenda_list=1]

    but it shows not the past events, but the upcoming events in reversed order?

  •  1
    caiusblg replied

    This is my code

    [stachethemes_ec cal="404" view="grid" show_top="0" agenda_cal_display="0" views="grid" min_date="2011-01-01" max_date="2018-12-31" start_date="2011-01-01" reverse_agenda_list="1"]

    It seems to work but it show only 4 events of 14 I added...
    https://www.em-corporation-agency.it/eventi-history/

  •  1
    caiusblg replied

    So pratically with that

    start_date="2011-01-01"

    it shows only 2011 events :(
    Because I tried to change date and every time shows events during that year...

  •  894
    Zhivko replied

    Could you export your events and send me the ics file to check it out?


    Stachethemes Developer

  •  1
    caiusblg replied

    Here it is!

  •  894
    Zhivko replied

    Okay this can't be done via shortcode alone. You will have to use a filter.

    Replace your shortcode with:

    [stachethemes_ec views=grid view="grid" show_top="0" views="grid" reverse_agenda_list="1" grid_per_click=20]

    In your theme functions.php file add following filter:

    add_action('wp_footer', function() {
        ?>
        <script type="text/javascript">
            (function ($) {
                
                if (typeof $.stecExtend === 'undefined') {
                    return;
                }
                
                $.stecExtend(function (master) {
                    master.calData.filterGetEvents = master.calData.eventsPool;
                }, 'beforeReturnGetEvents');
            })(jQuery);     </script>
        <?php
    });



    Stachethemes Developer

  •  1
    caiusblg replied

    Zhivko,

    THANKS a LOT!!!!

    GREAT!!!! It works perfectly