Support

Home Forums Event Espresso Premium Shortcodes on Payment Page

Shortcodes on Payment Page

Posted: May 23, 2013 at 3:49 pm

Viewing 3 reply threads


Von Nostrand

May 23, 2013 at 3:49 pm

Hi Guys

I really appreciate all your help and support so far.

Is there any reason the shortcodes won’t work on the payment_page? I am trying to display Event Start Date and Venue Title. I have tried to use a number of combinations including using

[code language=”php”]<?php echo event_date_display($start_date, get_option(‘date_format’)); ?>

<?php echo $venue_title; ?>[/code]

At the moment, with the date I get today’s date rather than the event start date, I don’t get anything returned for the venue title (I am using venue manager for these events)

 


Dean

May 24, 2013 at 3:51 am

Hello,

Just to clarify, those are not shortcodes, those are variables in PHP.

I tested out the code you supplied in my payment_page.php file and the date worked just fine, providing the correct start date for the event.

The venue title is a little more tricky, as the venue details are not always called on each template. Also the $venue_title variable doesnt actually relate to the venue manager, but the basic venue data when VEnue Manager is turned off.

One way to do it is to use the shortcode, via do_shortcode

eg


Von Nostrand

May 24, 2013 at 4:30 am

Hi Dean

Thanks for your help. Yes I was using the wrong terminology where I meant variables.

I am not sure what was happing with the date variable brining up “today’s” date but I haven’t seen it again.

I have used you do_shortcode shortcode and all appears to be working now. Happy days!

 


Dean

May 24, 2013 at 4:34 am

No problem, glad its working, if the date still causes issue, let me know but I think it will work fine.

Viewing 3 reply threads

The support post ‘Shortcodes on Payment Page’ 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