I have two prices set up for my workshop. The first is for one person and the second is for two people. In the event list page it shows the price for two people and I would like it to show the base price for one person. I don’t want to add for two people first and one person last because in the drop down menu when you order the two people price is the first to appear.
Is there a way to have it show the first price I enter and not the last?
<!–?php
//This is the event list template page.
//This is a template file for displaying an event lsit on a page.
//There should be a copy of this file in your wp-content/uploads/espresso/ folder.
/*
* use the following shortcodes in a page or post:
* [EVENT_LIST]
* [EVENT_LIST limit=1]
* [EVENT_LIST show_expired=true]
* [EVENT_LIST show_deleted=true]
* [EVENT_LIST show_secondary=true]
* [EVENT_LIST show_recurrence=true]
* [EVENT_LIST category_identifier=your_category_identifier]
*
* Example:
* [EVENT_LIST limit=5 show_recurrence=true category_identifier=your_category_identifier]
*
*/
$first_event_instance = $events_group[0];
$first_event_excerpt = array_shift(explode('<!–more–>', html_entity_decode($first_event_instance['event_desc'])));
The support post ‘Price showing the last entered instead of the first in the event list’ 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.