Sort by month in photo view

Home Forums Calendar Products Events Calendar PRO Sort by month in photo view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1285373
    sjj2017
    Participant

    Hi,

    The photo view in the Events Calendar Pro fits our website’s needs pretty well. The only thing that we are missing is the possibility to sort the events by month – like on the normal list view (see image in private view). Is it possible to do that? Perhaps with a code snippet or the like?

    Best regards,
    M

    #1285376
    sjj2017
    Participant

    This reply is private.

    • This reply was modified 8 years, 11 months ago by sjj2017. Reason: No image showed up
    #1286333
    Victor
    Member

    This reply is private.

    #1287015
    sjj2017
    Participant

    Hi,

    Thanks for your answer.
    I have a question regarding the loop. I can see that in the list loop following code is used:

    
    <!-- Month / Year Headers -->
    <?php tribe_events_list_the_date_headers(); ?>
    

    Is that only for the list? I tried inserting it in the photo loop, but it didn’t work.

    #1287361
    Victor
    Member

    Hi M!

    That’s a good catch actually. It should work for the photo view as well.

    If you are inserting the function inside the loop and not seeing it, then you might want to double check by inspecting the page and look for the html code. It may be that it’s there but not showing because it will need some css / html adjustments.

    You can also see how the tribe_events_list_the_date_headers() function works by looking at the code in wp-content/plugins/the-events-calendar/src/functions/template-tags/loop.php. You can even copy the code and create your own function in your theme’s function.php file and modify it to suit your needs. Just remember to use a unique function name.

    I hope that helps! 🙂

    Cheers!
    Victor

    #1297302
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Sort by month in photo view’ is closed to new replies.