• Resolved thesharpinator

    (@thesharpinator)


    We have around 15 events right now in October. The month view only shows the first 12 events, and the list view shows one extra, and only shows the first 13… Not sure why this is different. I’ve set the Number of events to show per page setting to 30 and the Blog post settings in Settings > Reading to 30. We do have some customizations, but I completely removed them and the issue persisted.

    In the link, there should be events on the 18th, 24th and 31st.

    Any help or direction is appreciated!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter thesharpinator

    (@thesharpinator)

    I figured out it is clashing with the Salient theme. Switching themes causes it to pull all events correctly.

    Also, if I uncheck “Enable updated designs for all calendar views” it also pulls all events, even with Salient.

    Any ideas?

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @thesharpinator

    Glad to hear that you were able to find the culprit here. It sounds like there is a theme conflict between Salient and the updated calendar views.

    I’d recommend reaching out to Salient to see if they have any ideas on how to resolve this for you.

    Otherwise you are welcome to stick with the legacy views for now.

    I hope that helps!

    Thanks,
    Jaime

    I had the same problem with a client of mine and found this post. Here’s how I worked around it.

    You can create a salient-tribe-events-fix.php file in your plugins directory with this code.

    
    <?php
    
    /*
    Plugin Name: Salient Tribe Events Fix
    Description: Allow month view to show all events
    */
    
    class Salient_Tribe_Events_Fix
    {
        public function __construct()
        {
            add_action('pre_get_posts', array($this, 'pre_get_posts'), 1000, 1);
        }
    
        public function pre_get_posts($query)
        {
            // Salient theme sets a default posts_per_page value of 12 for all search queries
            // This interferes with Tribe Events Calendar Month view
            // See "change_wp_search_size" function in salient/functions.php
            if (function_exists('tribe_is_month') && tribe_is_month()) {
                $query->query_vars['posts_per_page'] = -1;
            }
    
            return $query;
        }
    }
    
    new Salient_Tribe_Events_Fix();
    
    • This reply was modified 4 years, 1 month ago by Ryan Smith. Reason: add PHP tag
    • This reply was modified 4 years, 1 month ago by Ryan Smith. Reason: add plugin header
    Plugin Support Jaime

    (@jaimemarchwinski)

    Thank you @rscs

    @thesharpinator let us know if that works for you!

    Thread Starter thesharpinator

    (@thesharpinator)

    @rscs thanks for this, I’ll have to give it a try! Currently, I have just used the legacy view and customized the CSS to get it to look similar to the new version. When I get some time, I’ll try that out and update with the results.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Thanks for the update @thesharpinator!

    Let us know if you need any further assistance here!

    Plugin Support Jaime

    (@jaimemarchwinski)

    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. ??

    diegobrouard

    (@diegobrouard)

    Hi!, we had just the same issue. Testing the fix it working partially.

    At the load moment, it works perfect but, when we change the month, there’s an AJAX call to update the events and again, only 12 events are shown.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Events Page Only showing 12 or 13 events per Month (Month or List view)’ is closed to new replies.