Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Created February 2, 2015 15:22
Show Gist options
  • Save lorenzocaum/59a9037fac1dbf1478e6 to your computer and use it in GitHub Desktop.
Save lorenzocaum/59a9037fac1dbf1478e6 to your computer and use it in GitHub Desktop.
How to show multiple prices on the event listing page for Event Espresso 3

This can be done by adjusting the some templates files for Event Espresso 3.

Here the steps to do so:

Part A

Add the following coding to your child theme's functions.php or through a site specific plugin (http://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

https://gist.github.com/sethshoultes/ab1e992668cf3166a686#file-event_espresso_price_list-php

Part B

  1. Login to your WordPress site with your preferred SFTP or FTP client. FileZilla and Cyberduck are free options. Try Transmit for Mac

  2. Browse to this location: /wp-content/plugins/event-espresso/templates

  3. Locate the following files and download a copy of them to your local computer:

event_list_display.php

event_list.php

  1. Using your preferred FTP or SFTP client, browse to this location: /wp-content/uploads/espresso/templates

  2. Upload the two files that you recently downloaded to the location above

  3. Open the event_list_display.php file for editing and go to about line 85. You’ll see some coding like this:

echo do_action('action_hook_espresso_price_display', $event_id, $event_cost,
  1. Change it to the following and save changes (i.e. change display to list):
echo do_action('action_hook_espresso_price_list', $event_id, $event_cost,

Be sure to the save changes to the files that were edited above. You can then go to the event listing page to view your edits on your site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment