Yes, there is, but you need to add a filter in your functions.php for every field that you would like to change. Here is an example:
http://www.slimndap.com/replace-default-divs-event-listings/
Thanks again Jeroen, it seems I am asking questions that have been answered before, sorry about that.
It’s working for {{title}} as in your example, but not for the {{ID}} field. Any idea how I can display the post ID without a DIV?
I use {{ID}} (the event post ID) as the unique key for each event and want to link to event data in a Formidable Pro form/database. Is there a way I can use shortcodes of other plugins within the Theater shortcode? Something like this:
[wpt_events]{{title}}{{datetime}}{{ID}}[display-frm-data id=290 voorstelling='{{ID}}’][/wpt_events]
Thanks,
Casper
I have found a way to do this, but it’s a workaround. With this I can create a planning/roster overview of all public Theater for WordPress events and the names of the employees working on that specific event, taken from Formidable Pro.
On a page called “dienstrooster’ I have this shortcode:
[wpt_events]{{title}}[/wpt_events]
In functions.php I have added:
function replace_event_title_divs($html, $event) {
global $post;
if ( $post->post_name == 'dienstrooster' ) {
return '<b>'.$event->title().'</b> '.$event->startdate().' '.$event->starttime().' '.do_shortcode('[display-frm-data id=290 voorstelling="'.$event->ID.'"]');
} else return $event->title();
}
add_filter('wpt_event_title_html','replace_event_title_divs', 10, 2);
The filter screws up the Theater widget output on that same page, still working on that.
You can create a custom placeholder, eg. {{dienstrooster}} and use the wpt_event_${field}_html filter to insert your form:
function get_dienstrooster_html($html, $field, $event) {
return do_shortcode('[display-frm-data id=290 voorstelling="'.$event->ID.'"]');
}
add_filter('wpt_event_dienstrooster_html', 'get_dienstrooster_html', 10, 3);
You can then use this shortcode:
[wpt_events]{{title}}{{datetime}}{{dienstrooster}}[/wpt_events]
Brilliant! I am loving this plugin more by the day!
Thanks again