Takes over a week to get a response to a question…
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
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?
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;
}
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!
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