• Resolved chrislondon

    (@chrislondon)


    Hi Jeroen,

    Thanks for the amazing plugin.

    I’m looking at your blog post about how to replace the default divs that wrap custom fields in event listings: https://www.slimndap.com/replace-default-divs-event-listings/

    This is the code I copied from your post:

    function replace_event_address_divs($html, $field, $event) {
      return '<div class="address">'.$event->custom('address').'</div>';
    }
    add_filter('wpt_event_address_html','replace_event_address_divs', 10, 3);

    It works perfectly for the event listing – [wpt_events]. But I also want to replace the same custom field in a production listing – [wpt_productions]. Can you tell me how I do both in my theme functions file?

    Thanks!
    Chris

    https://www.ads-software.com/plugins/theatre/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace default divs in both event and production listings’ is closed to new replies.