Posted: August 23, 2013 at 3:10 am
Hi, I’ve managed to customise the table layout but I need to display the prices for the events and event’s category name in the table header. I can’t find the “event price” and the “category name” variables to display them into the table layout. this is what I did: I’ve also added a small change to display “closed” instead of “register” when the open_spots < 1, like this: is this correct? it appears to be working… And the last question, I want to modify that “register” link to load the registration form into a specified page, if I change page_id to a custom page, will the registration form work? Thank you for your help, I’m not the best coder :)
| |
For the price and the category name you can use these shortcodes in a do_shortcode: <?php echo do_shortcode('[EVENT_PRICE event_id="'.$event->id.'" number="0"]');?> http://staging.eventespresso.com/wiki/shortcodes-template-variables/#event-price <?php echo do_shortcode('[CATEGORY_NAME event_id="'.$event->id.'"]');?> http://staging.eventespresso.com/wiki/shortcodes-template-variables/#event-category
I’m afraid that will not work. The registration page is the page that has the [ESPRESSO_EVENTS] and is set to be the main registration page in Event Espresso>General Settings. | |
Hi Josh, Thank you so much for the above, it works, but only after foreach.. what can I do to use them (at least to use the category name), before the foreach section, for example, I want to use it into the <th> section, bit above that. Thank you again for your great support. | |
Hi Ion, You’d need to create another foreach loop for the area where you want to display an event category name for each event. | |
The support post ‘I want to display price and category name in [espresso_table]’ 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.