• Resolved stivenson2005

    (@stivenson2005)


    Hello there,

    I noticed that when i have an organizer with multiple upcoming events, the events in the upcoming tab isn’t shown chronologically, assuming an event for an organizer coming this 4th of July, then another event on the 6th and one that is coming on the 2nd of July. So it becomes 4TH. 6TH. 2ND. instead of 2ND. 4TH. 6TH.

    Note that I am referring to the organizer page, like https://www.domain.com/event-organizer/organizername/

    I haven’t been able to find the argument/meta for this to add a snippet like its done with the events page where I was able to use the snippet of code provided in your tutorial and documentation.

    You help and support is much appreciated.

    Regards,
    Mark.

    • This topic was modified 1 year, 10 months ago by stivenson2005.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter stivenson2005

    (@stivenson2005)

    Takes over a week to get a response to a question…

    • This reply was modified 1 year, 10 months ago by stivenson2005.

    HI @stivenson2005

    Please check the following

    //code for upcoming event tab
    add_filter("wpem_single_organizer_upcoming_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_upcoming");
    function YOUR_THEME_SLUG_change_organizer_listing_order_upcoming($args){
    //$args['orderby'] = 'YOUR CUSTOM ORDER';
    return $args;
    }
    //code for past event tab
    add_filter("wpem_single_organizer_current_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_current");
    function YOUR_THEME_SLUG_change_organizer_listing_order_current($args){
    //$args['orderby'] = 'YOUR CUSTOM ORDER';
    return $args;
    }
    //current tab 
    
    add_filter("wpem_single_organizer_past_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_past");
    function YOUR_THEME_SLUG_change_organizer_listing_order_past($args){
    //$args['orderby'] = 'YOUR CUSTOM ORDER';
    return $args;
    }

    Regards,
    Priya

    Thread Starter stivenson2005

    (@stivenson2005)

    Thank you for the response really appreciate it, I will try the snippet of code and get back to you.

    this part //$args[‘orderby’] = ‘YOUR CUSTOM ORDER’;

    I believe i am supposed to unmute it and change the YOUR CUSTOM ORDER to for example ASC, correct?

    Thread Starter stivenson2005

    (@stivenson2005)

    Hi Again,

    the issue remains there despite adding this snippet, it had no effect unfortunately.

    here is a picture of the page i am referring to and you will see that

    25-26 Jun then 30-31 Jul then 16-16 Jul

    Where it should be like 25-26 Jun – 16-16 Jul then 30-31 Jul

    https://www.tangent.no/wp-content/uploads/2022/06/issue1.png

    And this the piece of snippet used

    //code for upcoming event tab
    add_filter("wpem_single_organizer_upcoming_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_upcoming");
    function YOUR_THEME_SLUG_change_organizer_listing_order_upcoming($args){
    $args['orderby'] = 'ASC';
    return $args;
    }
    • This reply was modified 1 year, 10 months ago by stivenson2005.
    Thread Starter stivenson2005

    (@stivenson2005)

    Sorry for this and its resolved partially. I noticed just now that it was orderby and not order, therefore was missing the meta value, and added the order and then ASC and got this working. But somehow it wont work with DESC?

    Thank you again for your help.

    Great plugin!

    • This reply was modified 1 year, 10 months ago by stivenson2005.
    Thread Starter stivenson2005

    (@stivenson2005)

    Sorry for this and its resolved partially. I noticed just now that it was orderby and not order, therefore was missing the meta value, and added the order and then ASC and got this working. But somehow it wont work with DESC?
    
    Thank you again for your help.
    
    Great plugin!

    Here a pic of the ASC working, but the DESC is if there is no filter been applied.

    https://www.tangent.no/wp-content/uploads/2022/06/ASC.png

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Organizer upcoming events Chronological Problem’ is closed to new replies.