This object is in archive! 

Seasons Ascending

Jan H shared this question 6 months ago
Answered

How can I show the seasons in ascending order?

Comments (1)

photo
1

Dear Jan,

Could you please specify where and why you need Seasons in ascending order. Please feel free to contact our chat support to discuss such kind of questions.


Kind regards

Irene

photo
1

Hello Irene

on the site runploug.nl has each member is own results. these are ordered by year (seasons). I want to show the last year first. instead 2017, 2018, 2019 I want to show 2019, 2018, 2017


https://runploug.nl/jsprt_achv_player/jan_hielema/


Kind regards

Jan

photo
1

Dear Jan,

I've passed your request to the development team, it may take 1-3 business days to get answer.

I'll keep you informed

Kind regards

Irene

photo
1

Dear Jan,

Please go to the file

/wp-content/plugins/joomsport-achievements/sportleague/base/wordpress/models/model-jsport-player.php


Find the lines:


$args = array(
'post_parent' => 'any',
'post_type' => 'jsprt_achv_season',
'numberposts' => -1,
'post_status' => 'published',
'orderby' => 'menu_order title',
'order' => 'ASC',
);

Replace by the lines:


$args = array(
'post_parent' => 'any',
'post_type' => 'jsprt_achv_season',
'numberposts' => -1,
'post_status' => 'published',
'orderby' => 'menu_order title',
'order' => 'DESC',
);
Please save this instruction as such modification will be lost in case if you update JoomSport Achievements plugin

Kind regards

Irene

photo
1

great it works thanks

photo
1

Halo! :) You are welcome!


If you have a chance...

We have our JoomSport on Capterra catalogue and on WordPress catalog. It can be very simple but I would appreciate your high rated feedback there.

https://www.capterra.com/reviews/148475/JoomSport/new

https://wordpress.org/support/plugin/joomsport-sports-league-results-management/reviews/#new-post

This is REALLY critical point for our product.

photo