• Resolved macguru2000

    (@macguru2000)


    Hi,

    I am using version 2.1.14 of GigPress with WordPress 3.3.1 in a custom theme. My question pertains simply to the order that the shows are listed in when group by artist is turned off.

    When I set the group_artists parameter to ‘no’, the order is set to artist then show_date. I was hoping to order the list just by show_date, ignoring the actual artist as far as ordering is concerned. I want to do this for both the Widget and the Shortcode.

    Know of a way to do this?

    Here is the Shortcode currently in use:

    [gigpress_shows scope=upcoming group_artists=no show_menu=monthly ]

    http://wordpress.org/extend/plugins/gigpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter macguru2000

    (@macguru2000)

    Never mind, I figured out that it was the tours that were causing the wrong order. If you have a one to one relationship of artist to tour, you will cause the sorting to do tour_name than show_date, which looks very similar to artist_name than show_date. Especially when you are hiding the tour information. Ha 🙂

    Actually, the shows are ordered only by date and time, no other explicit ordering is set, so whatever you’re seeing is just what MySQL is deciding for multiple shows on the same date at the same time (or with no explicit time set).

    Thread Starter macguru2000

    (@macguru2000)

    So the problem wasn’t with multiple shows on the same date not being ordered correctly, I understand the behaviors of MySQL when ordering by date and time and how it may decide to arbitrarily order two items that have the exact same date or time.

    My problem was when I had group_artists set to no and all shows from my 3 musicians in 1 of 3 tours. Each tour was for each musician, such as this:

    tour A – musician 1
    tour B – musician 2
    tour C – musician 3

    It seems that Gigpress completely renders tour A before going on to render any of the shows in tour B. I am not complaining about this, in fact it is exactly how I would expect it to behave if I sit down and think about it.

    So GigPress “appeared” to ordered the shows by artist, when in fact it grouped the shows by tour and ordered them by date. Here are the date ranges for each tour, as you can see tour 2 contains shows that happen before the last show in tour 1.

    – tour 1 (feb – april)
    – tour 2 (march – april)
    – tour 3 (march – april)

    My solution was to delete the tours, since they were not necessary for my client and voila! all the shows are no longer grouped by tour, just what they wanted.

    Thanks for the awesome plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem Sorting GigPress Shows’ is closed to new replies.