Home Forums Event Espresso Premium Displaying Early Bird Pricing Details on Custom Post Type Template

Displaying Early Bird Pricing Details on Custom Post Type Template

Posted: January 9, 2014 at 4:29 am

Zoe Newman

January 9, 2014 at 4:29 am

I am using the custom post type template single-espresso_event.php and in it displaying the price

$event_price = '£' . do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]');
<?php echo $event_price; ?>

which is fine it displays the price, and if it is within the ealry bird pricing dates, it displays the early bird price. However it doesn’t state that it is the early bird price and that the price will go up after the set date. What I would really like is to be able to display:
Full Price: £100
Early Bird Price: £95. When booked before <early bird end date>.
I’ve tried and failed to do this. How can I amend the custom post type template to achieve this please? Thanks.

wp: 3.7.1


  • Support Staff

January 9, 2014 at 11:32 am

Hi Zoe,

It turns out there is more than one way to go about this. One way is to edit the single event template and change the shortcode that displays the registration from to:

<?php echo do_shortcode('[ESPRESSO_REG_PAGE event_id="'.$event_id.'"]');?>

so it’s PAGE instead of FORM. You’ll need to remove the start date the event’s description since using ESPRESSO_REG_PAGE outputs these too.

Alternatively you could add this where you want the price to be displayed:

<p class="price">
<?php do_action( 'espresso_price_select', $event_id, array('show_label'=>FALSE, 'label'=>'') ); ?>

The support post ‘Displaying Early Bird Pricing Details on Custom Post Type Template’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Josh 7 years ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!