Posted: July 22, 2012 at 10:47 am
In the single-event_espresso.php file, the variables coded this way:
I have used other do_shortcode with my themes shortcodes in the template and they did work fine but the event espresso’s shortcodes do not bring back the values of the variables. I verified in the database and I do have values. I am using the latest version 3.1.25.P
|
|
Sounds like the $event_id variable is not being declared. |
|
Maybe this could be of any value, I also tried hardcoding the event_id value directly in the code and it didn’t bring back the information. |
|
The following variable should be included with the group of variables declared just after the loop in single-espresso_event.php:
|
|
The variable is included with this group of variables:
within the single-event_espresso.php, file yet it doesn’t work. |
|
Looks like it’s more of an issue with the event_time shortcode. I’ve created a ticket to address this. For now, try using the $event_start_date:
|
|
|
It seems like the shortcode for EVENT_PRICE and EE_META are also not working. |
Where are they not working? |
|
|
They aren’t working in the single-espresso_event.php and page-event_list.php templates from the post-type-samples. |
For the price shortcode, open up includes/shortcodes.php and change line 283 from
to
For the ee_meta in the above mentioned templates, you’ll need to declare $event_meta:
|
|
|
Thank you, Josh! |
The support post ‘Variables using do_shortcode not working in single-event_espresso.php’ 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.