• Resolved askrobinou

    (@askrobinou)


    Hello,

    I want to show a grid view of the events with groupby=”recurrence_id”

    I search on the events manager documentation but that shortcode does not work :
    [events_list view=”grid” groupby=”recurrence_id” groupby_orderby=”event_start_date,event_start_time”]

    view=”grid” seems to break the thing.

    Actually, I want to display groupby=”recurrence_id” everywhere on the site. I don’t want to display two of the same recurring event sitewide. Is it possible ?

    Thank you 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • I tried the following shortcode and it worked for me:

    [events_list groupby='recurrence_id' view='grid' groupby_orderby='event_start_date,event_start_time']

    It only showed each recurring event once. Make sure you use the straight quotes, not the slanted quotes.

    I don’t see any way to set a groupby default option for all event lists sitewide

    I tried this code and it worked for me. But it is only showing events in the current month. I can’t see the page numbers at the bottom of the page. I know I have events in the future months.

    This is the default page (set in EM settings) with repeated events showing all: https://findhalal.co/events/

    This is the page I am trying to create using the shortcode with no repetition: https://findhalal.co/test-events-page/

    • This reply was modified 2 years, 5 months ago by bjibril.

    There may be a problem with the groupby with the grid view. Try the following shortcode:

    [events_list view='grid' limit=16 pagination=1]

    Thank you! I got the grid view with no repetition and with pagination exactly as I wanted it using all the codes together:

    [event_search_form] [events_list scope='future' groupby='recurrence_id' view='grid' groupby_orderby='event_start_date,event_start_time' limit=16 pagination=1]

    Sorry one issue came up. When I use the search form to search. The list of events still remain on the page with the search results. https://findhalal.co/test-events-page/ How can I fix this?

    Also how do I search only past events?

    I was never able to get the [event_search_form] shortcode to work with the [events_list] shortcode (so, I don’t know what’s the purpose of the [event_search_form] shortcode). I was able to get the search to work with the events calendar using the following shortcode:

    [events_calendar has_search=1 show_search=1]

    I don’t know how to create a page with list or grid view as the default with a search bar. The above shortcode will have a search bar but it defaults to the calendar view (you can still switch to grid view). I would like to see the following supported: [events_calendar has_search=1 show_search=1 view=”grid”] (currently it doesn’t work).

    I don’t know how to search for all past events but you can specify a date range when doing a search.

    • This reply was modified 2 years, 5 months ago by joneiseman.

    Thank you. I don’t want to use the default calendar. Is there a way to edit the PHP file to use these parameters when displaying the events manager default page? That is the php version of below.

    [events_list scope='future' groupby='recurrence_id' view='grid' groupby_orderby='event_start_date,event_start_time' limit=16 pagination=1]

    If you point me to the file to edit, I can find it from the wp-content directory

    I don’t think there’s a PHP file that you can edit that will result in the default calendar page to display what that shortcode would display.

    Thanks for your response. I edited the wp-content/plugins/events-manager/templates/templates/events-grid.php file.
    I changed line 16 from

    echo EM_Events::output( $args );

    to

    echo EM_Events::output( array('scope'=>'future', 'groupby'=>'recurrence_id', 'groupby_orderby'=>'event_start_date,event_start_time', 'limit'=>16, 'pagination'=>1) );

    But still no change in the default events output on https://findhalal.co/events/

    EDIT

    It actually worked! But the grids are now super long. Don’t know what else to change

    EDIT 2

    Search also stopped working properly

    • This reply was modified 2 years, 5 months ago by bjibril.
    • This reply was modified 2 years, 5 months ago by bjibril.
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘view=”grid” not working’ is closed to new replies.