Photo view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1033998
    rgaller
    Participant

    How do I get this snipit to show the events in order by date? Soonest date first.

    /*
    * 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() ) {

    $query->set( ‘posts_per_page’, -1 );

    }

    return $query;
    }

    #1034137
    Geoff
    Member

    Hey there!

    Something like this should do the trick:

    https://gist.github.com/geoffgraham/9224b5953b4978110a87

    I have fully tested this, but it should at least give you a good starting point to work with.

    Cheers!
    Geoff

    #1037001
    rgaller
    Participant

    Thank you…but this didn’t work and gave me an error?

    #1037156
    Geoff
    Member

    Whoops, sorry! This resolves the error:

    https://gist.github.com/geoffgraham/9224b5953b4978110a87

    And what I meant to say in my first reply is that I haveĀ not fully tested this snippet–hopefully it will at least give you a good foundation to build from though.

    Thanks!
    Geoff

    #1075995
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Photo view’ is closed to new replies.