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.
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.
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.