• Resolved sezgee

    (@sezgee)


    Hi,
    In order to create an upcoming events lists, I’ve set all past events to expire.
    In order to show a past events list, I use the [past_events] shortcode.

    I wanted to have a filter for past event categories, but that doesn’t seem possible?

    So I tried this: selected_categories=”fall-2019″. However, it looks like expired events don’t appear in the selected_categories after they expire.

    Is there any way for past events to have a filter or organize by category? Or is there an [expired_events] shortcode that accepts categories? Or is there a way to NOT expire the events but keep past events out of the upcoming events list?

    I’m open to alternatives…. just want upcoming and archives, both with filters.
    Thanks.

    ADDITION: to be clear this shortcode [past_events order=”DESC” selected_categories=”fall-2019″ layout_type=”list”] produces 0 results even though the expired events are in that category.

    • This topic was modified 2 years, 8 months ago by sezgee.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @sezgee

    There are 2 scenarios,
    1. Upcoming events or event list wll not show expire listings(as per your settings), hence, the shortcodes related to event listing page will also not show expired events.
    2. Past events- We have not given Filters on past events.

    However, i will forward your request for future implementation of the Filters on past events in Future updates.

    Regards,
    Priya

    Thread Starter sezgee

    (@sezgee)

    Okay, thanks. I turned off expiration on all of our events and then used these two codes:

    [upcoming_events per_page=”30″ layout_type=”list” orderby=”event_start_date” order=”ASC”]
    [events order=”DESC” orderby=”event_start_date” layout_type=”list”]

    It looks like upcoming events uses the past events template so I switched their templates as well.

    One more questions. I have code associated with an optional additional field. The field has been added to my functions php, but I want the additional code to only be included if the field is not empty. Can you advise?

    I tried !empty, but the return is always the same regardless of whether or not there is content.

    
    <a href="#" class="expand">HIDE THIS LINK IF THERE IS NO CONTENT IN ABSTRACT</a> 
     <div class="abstract">
     <?php display_abstract( '',   '',   true, $post);?>
    </div>

    Hi @sezgee

    We have achieved this already in a file called content-single-event_listing.php under template directory of our plugin. I Would request you to refer this file.

    Regards,
    Priya

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories on Past Events’ is closed to new replies.