Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Event table sorting by price | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Event table sorting by price

Event table sorting by price

Posted: December 5, 2013 at 7:57 am

Viewing 1 reply thread


Ion Paciu

December 5, 2013 at 7:57 am

Hello,

Is it possible to have the events listed with espresso_table shortcode ordered by price ?

thank you


Josh

December 5, 2013 at 11:25 am

Hi there,

It’s not possible out of the box. The order_by parameters that are available for the event list and event table shortcodes are listed here in the documentation:

http://staging.eventespresso.com/wiki/shortcodes-template-variables/#event-list

If you are comfortable with editing PHP files, the template can be edited so the order_by will sort by price. Some examples of the code changes follow:

//before the query
$order_by = $order_by != 'NULL'? " ORDER BY ". $order_by ." ASC " : " ORDER BY ep.event_cost ASC ";

//in the main SELECT query (not the one for the category type)
$sql .= "LEFT JOIN " . EVENTS_PRICES_TABLE . " ep ON ep.event_id = e.id ";
Viewing 1 reply thread

The support post ‘Event table sorting by price’ 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.

Event Espresso - Staging Server