• Resolved mikeceret

    (@mikeceret)


    I want to change from the current single list grouped by year:
    [events_list_grouped mode=”yearly” category=”-9″ scope=”all” orderby=”event_start_date” order=”DESC”]
    to put all the events for a single year in an accordion page for that year (at the bottom, but not populated yet. And to group by month..
    So it will be something like:
    [events_list_grouped mode=”monthly” category=”-9″ scope=”all” orderby=”event_start_date” order=”DESC”]
    but how do I restrict to a single calendar year only (2018, 2019, 2020)?
    Or is the only way to add a category for each year and restrict by that?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    At the moment this is not yet available out of the box and might need custom coding on your part to make this work. You can try to create a custom shortcode using PHP to loop the year and then call WP do_shortcode passing the year to shortcode like

    
    echo do_shortcode('[events_list  scope="2020-01-01,2020-12-31"]');
    
Viewing 1 replies (of 1 total)
  • The topic ‘What shortcodes to get only events for a single calendar year’ is closed to new replies.