• Resolved Almudenita11

    (@almudenita11)


    I need help with this page.

    I would like that pass events appears in the page in the reverse order, I mean, that de most recent appear firstly and later the older.

    And I would like to include a new page with the past event classificated by season, something like this page.
    https://www.yeoleumson.com

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @almudenita11,

    Thanks for your interest in our products.

    For reversing the past event order, you can try a snippet like this in your functions.php file:

    // Changes past event views to reverse chronological order
    function tribe_past_reverse_chronological ($post_object) {
    
    	$past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false;
    
    	if(tribe_is_past() || $past_ajax) {
    		$post_object = array_reverse($post_object);
    	}
    
    	return $post_object;
    }
    add_filter('the_posts', 'tribe_past_reverse_chronological', 100);

    For changing the view, I don’t have a pre-made snippet for that — plus the scope of our free support doesn’t really include customizations. This can be done for sure, our Themer’s Guide and Functions list should help point you in the right direction — tribe_get_events is probably the function that you would need.

    Hope that helps!

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

    Thanks
    Courtney ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Season Calendar’ is closed to new replies.