Home › Forums › Calendar Products › Events Calendar PRO › Photo view not showing all events….
- This topic has 10 replies, 2 voices, and was last updated 8 years, 1 month ago by
bizzallmedia.
-
AuthorPosts
-
February 7, 2018 at 7:33 pm #1447143
bizzallmedia
ParticipantReally 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,February 8, 2018 at 2:40 pm #1448393Jennifer
KeymasterHello,
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
February 8, 2018 at 2:50 pm #1448403bizzallmedia
ParticipantWow, that worked like a charm 🙂
Thanks!February 8, 2018 at 4:09 pm #1448477bizzallmedia
ParticipantOkay, 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?
February 8, 2018 at 4:39 pm #1448482bizzallmedia
ParticipantThis reply is private.
February 8, 2018 at 7:34 pm #1448563bizzallmedia
ParticipantAnd would there be a similar snippet for list view?
Tried searching but couldn’t find one.Thx.
February 14, 2018 at 11:08 am #1453282Jennifer
KeymasterHello,
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
February 14, 2018 at 1:42 pm #1453490bizzallmedia
ParticipantOh 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,
🙂February 14, 2018 at 1:55 pm #1453519Jennifer
KeymasterNo 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 🙂
March 8, 2018 at 8:35 am #1473530Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Photo view not showing all events….’ is closed to new replies.
