• Resolved kokothecoder

    (@kokothecoder)


    The plugin only displays 12 out of the 18 events that I have created for the month of June 2021. What might be the problem, and how can I fix this?

    • This topic was modified 3 years, 5 months ago by kokothecoder.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey @kokothecoder

    Thank you for reaching out!
    Would you mind sharing a direct link to one of the events that should be appearing but isn’t?

    Make sure you tag me so that I can see your reply.

    Hang in there,
    Geoff

    Thread Starter kokothecoder

    (@kokothecoder)

    @kokothecoder

    Thank you!
    I have good news. It sounds like the events are correctly published.

    You can see them here: https://uctlanguagecentre.com/events/list

    There is most likely some form of caching issue at play. Either through the “Enable Month Caching” option under Events > Settings > Display (try deactivating that) or some caching plugin on your site where the cache needs to be emptied.

    Let us know what you find out.

    Geoff

    Thread Starter kokothecoder

    (@kokothecoder)

    Hi @geoffbel

    Although the events seem to be published, not all of them are displayed in the month view.

    For instance, if you look at our calendar in June (https://uctlanguagecentre.com/events), none of the events created on 22nd, 23rd, 24th, 29th, and the 30th June are displayed in the month view.

    I have disabled the “Enable the Month View Cache” setting as you suggested.
    Do you know why some events are displayed in the month view while some aren’t?

    • This reply was modified 3 years, 5 months ago by kokothecoder.

    @kokothecoder

    To answer your question, there could be a few reasons why the Month View is not displaying all the events.

    But based on your specific situation, it looks like the number of events is capped at 12 systematically (no matter what the view is). That is super weird, because normally only the list view should be impacted by the “Number of events to show per page” setting under Events > Settings > General

    Would you mind changing the value for that setting to see if that helps?

    Best regards,
    Geoff

    Thread Starter kokothecoder

    (@kokothecoder)

    Hi @geoffbel

    I have been adding more events to the calendar and indeed it does seem that the number of events displayed in the month view is capped at 12 systematically. Just as in June 2021, only 12 of the events that I have created in July 2021 are displayed in the month view.

    As you suggested, I did try changing the value for “number of events to show per page” (Events > Settings > General). I changed it to “30” but that did not help.

    • This reply was modified 3 years, 5 months ago by kokothecoder.
    • This reply was modified 3 years, 5 months ago by kokothecoder.

    @kokothecoder

    Thank you for writing back.
    We just had a report of a similar glitch from another customer using the Salient theme.

    After investigation, it looks like there is a filter in that theme that limits the number of posts per page to 12.

    One quick way to check if this is theme-related is to have a staging site where you can switch themes to a default WP theme such a twenty-twenty and see if the problem persists.

    In fact, going through the complete testing for conflicts procedure would be awesome!

    Another approach (if you are comfortable with code AND have done a backup of your site) is to try the following in your theme’s functions.php

    function nectar_change_wp_search_size($query) {
    	// If tribe_events post type, bail.
    	if ( $query->query_vars['post_type'] == 'tribe_events' ) {
    		return $query;
    	}
    	if ( $query->is_search ) 
    		$query->query_vars['posts_per_page'] = 12; 
    	return $query; 
    }

    Best regards,
    Geoff

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Some Events Not Displaying’ is closed to new replies.