Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mistmupf

    (@mistmupf)

    Nobody any idea?

    TX

    Thread Starter mistmupf

    (@mistmupf)

    Hi Stephen,

    I saw you answered newer posts ;-( – is there a solution for my problem?

    Thx
    Claudia

    Plugin Author Stephen Harris

    (@stephenharris)

    Hi Claudia,

    Sorry, until recently I hadn’t been getting e-mail notifications.

    The sort order is date. You can change the orderby or order parameters using the appropriate attributes.

    E.g.

    [event_board order="desc"]

    Thread Starter mistmupf

    (@mistmupf)

    Hi Stephen,

    thanks for your reply. But thats not my problem: I changed for testing options to: https://www.widmanns-kabarett.de/73-2/

    If you have a look there, you can see, the user can see Aug 18th before July 18th – Aug 14th before Aug 1th …

    I tried to changed the height of the events always to be the same, but I didn’t find it.

    I hope you know what I mean. It’s difficult for me to explain in english.

    Thx
    Claudia

    Plugin Author Stephen Harris

    (@stephenharris)

    I couldn’t see an August 18th, but anyway, the order works from top-to-bottom and then left-to-right.

    So as you scroll down the page, you’ll see the earlier events first. Where multiple events appear level, the earliest ones will be on the left.

    When I looked at the page August 1 was in the fourth column and August 14 in the third, but lower down. That is correct. And in general the event board rendered as intended.

    I’m running into the same issue. I want to show the oldest events at the bottom and the newest at the top. I tried a bunch of different variations, but none of them changes the order.

    [event_board order="desc" event_start_after="-3 month"]

    In a one column view, it shows the oldest at the top and the newest at the bottom. I tried order=DESC or order=”DESC” or order=desc…same results

    When I do the same with the eo_events shortcode that works as expected.
    [eo_events order=DESC]

    Running on WP 4.4.

    I dumped the query object that gets passed into the query via the JS ajax call:
    `print_r($query);
    $event_query = new WP_Query( $query );`

    and this is what it shows:

    Array
    (
        [event_start_after] => -3 month
        [posts_per_page] => 20
        [order] => desc
        [post_type] => event
        [paged] => 1
        [post_status] => Array
            (
                [0] => publish
                [1] => private
            )
    
        [perm] => readable
        [supress_filters] =>
    )

    but the result is definitely not descending
    event_start_day: “16”
    event_start_month: “Dec”

    event_start_day: “22”
    event_start_month: “Dec”

    event_start_day: “23”
    event_start_month: “Dec”

    event_start_day: “24”
    event_start_month: “Dec”

    After quite a bit of head scratching I finally found the appropriate attribute:

    [event_board order="desc" orderby="eventstart"]

    Without the orderby attribute it doesn’t seem to work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sort order of Events’ is closed to new replies.