Photo view not showing all events….

Home Forums Calendar Products Events Calendar PRO Photo view not showing all events….

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1447143
    bizzallmedia
    Participant

    Really loving this plugin suite. Been fun playing around with it.
    Am stuck on the Photo View….. Previously I was informed that the photo view uses a pinterest type of view. However here it seems to load a certain amount of events and than there\’s a pagination to go to previous events or next events.
    It there are way to modify the navigation/loop or a script for funtions.php so all events are shown without pagination?

    Been trying to figure this out for 12+ hours, am not a developer but love a challenge 🙂 And the new site will look awesome 🙂

    Hope you can send me in the right direction on this,
    Thanks,

    #1448393
    Jennifer
    Keymaster

    Hello,

    I’m so glad to hear that you’re liking the plugin so far! We actually have a snippet that you can add to the functions.php file of your child theme, which will display all events in photo view. Keep in mind that loading all events on the same page might increase the time it takes for the page to load.

    Can you give this a try and let me know if it works for you?

    Thanks,

    Jennifer

    #1448403
    bizzallmedia
    Participant

    Wow, that worked like a charm 🙂
    Thanks!

    #1448477
    bizzallmedia
    Participant

    Okay, so you wrote “loading all events on the same page might increase the time it takes for the page to load”…

    Is there a way, like on pinterest for example or other similar sites, where it loads xxx amount and the rest gets loaded while scrolling down?

    #1448482
    bizzallmedia
    Participant

    This reply is private.

    #1448563
    bizzallmedia
    Participant

    And would there be a similar snippet for list view?
    Tried searching but couldn’t find one.

    Thx.

    #1453282
    Jennifer
    Keymaster

    Hello,

    Apologies for the delayed response! For list view, you can modify that snippet to include list view:

    /*
    * The Events Calendar Pro - Show All Events in Photo View
    * @version 3.12.4
    */
    add_action( 'pre_get_posts', 'tribe_photo_view_all_events', 15 );
    function tribe_photo_view_all_events( $query ) {
    if ( tribe_is_photo() || tribe_is_list_view() ) {
    $query->set( 'posts_per_page', -1 );
    }
    return $query;
    }

    Regarding the infinite scrolling, this could be achieved via a customization, but this would be outside the scope of support that we are able to provide here in the forums. If you’d like to give the code a shot, our themer’s guide is the place to start! We also have a list of recommended developers that you could contact if you would like to get help with the code.

    I’m sorry I don’t have a more straightforward solution on this for you, but please let me know if you have any other questions!

    Thanks,

    Jennifer

    #1453490
    bizzallmedia
    Participant

    Oh wow, that was a clear and simple solution to add everything to list view 🙂

    Will continue to look and see if I can find a solution to the infinite scrolling

    Thanks,
    🙂

    #1453519
    Jennifer
    Keymaster

    No problem, I’m glad that got the list view working for you!

    If there is anything else that I can help with, please let me know 🙂

    #1473530
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Photo view not showing all events….’ is closed to new replies.