Ready to get started?Download WordPress


GigPress sorting order? (5 posts)

  1. saladgoat
    Posted 3 years ago #

    GigPress version

    Is it possible to reverse the order of past dates?
    What I want is to be able to display my current dates in upcoming order, ie Dec 1, Dec 4, Dec 10, etc.
    But for past dates (archive), I'd like to list them in the reverse order, ie Nov 25, Nov 22, Nov 20, etc.

    I'm sure it's as simple as changing a 'ASC' to a 'DESC', but there are so many files, I don't even know where to start looking for the code.


  2. mrherbivore
    Posted 3 years ago #

    This is actually the default behaviour ... when using 'scope=past' the show will display in descending order.

  3. saladgoat
    Posted 3 years ago #

    And yet I asked the question.

    I am using the following shortcode:
    [gigpress_shows scope=past show_menu=monthly year=current limit=50]

    on this page:

    Default behaviour or not, you can see that dates are displayed earliest to latest. I would like to know where and how to change this to display from latest to earliest, without affecting the display of current/upcoming dates.


  4. mrherbivore
    Posted 3 years ago #

    Sorry, missed this reply. There was indeed an error that was causing past shows to be sorted in ascending order. This can be fixed by you by simply adding "sort=desc" to the shortcode. The default behaviour will be fixed in the next commit.

  5. saladgoat
    Posted 3 years ago #

    Thank you, I am loving it now :)

Topic Closed

This topic has been closed to new replies.

About this Topic