Posted: January 24, 2014 at 2:59 am
Hi, It would appear that the default sort order for price points in an event listing is from lowest price to highest and I would like to reverse the order so that the highest comes first. Could you please let me know how I can do this. Thanks, Nick | |
| Hi Nick, The event list should display the first price entered into the event. So in this example http://d.pr/i/Q2wY Price 1 (10.00) should be displayed for the event. So the easiest method to displaying a certain price within the event list is to input that price first. Does that make sense? |
Mmmh, that’s not what is happening on my site. The order of the price points in the admin section happens to be in the order I would like them to be displayed (i.e. sorted from highest to lowest), but on the front end of the site they are listed lowest to highest. | |
| Hi Nick, Can you post a link so we can see where this is happening please? |
Hi Tony, Yes. Here is the events page on my site – the price points are not in the same order as in the Admin page: http://opendialogueapproach.co.uk/events/ Thanks, Nick | |
| Hi Nick, I noticed from your previous post you are using THIS function to display the price list. The function in that Gist organizes the prices by the event_price ascending. You need to order them by ID so just change line 9 in that gist: $order_by = 'event_cost'; to $order_by = 'id'; That should then work as you expect it. Your line numbers will be different within the custom_functions.php file you have placed that function but should be easy enough to find. Hope that helps. |
Thanks for noticing that Tony. That change has indeed fixed the issue. Best Wishes, Nick | |
| No Problem :) I’ll mark this thread resolved. |
The support post ‘How do I order price points so that highest price is listed first?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.