Support » Plugin: Event List » custom field or custom variable

  • Hi,

    I am using the plugin Contact Form 7 and Contact Form 7 Dynamic Text Extension.

    I add the form in the event. I want to get in a dynamic way, the title and the start date of the event for exemple.

    For that I can use either a custom field or a custom variable of the event. I’ve tried to use “startdate” for exemple, but it doesn’t seem to work. What are the variables or the custom fields used in the event list plugin ?
    thank you

Viewing 1 replies (of 1 total)
  • hatesspam

    (@hatesspam)

    To my knowledge, the plugin uses the following custom fields: startdate, enddate, starttime, location. You can query these in PHP using the get_post_meta() function.

    <?php
      $event_id = get_the_ID();
      $startdate = get_post_meta($event_id, 'startdate', true);
      $enddate = get_post_meta($event_id, 'enddate', true);
      $starttime = get_post_meta($event_id, 'starttime', true);
      $location = get_post_meta($event_id, 'location', true);
    ?>
    • This reply was modified 1 year ago by hatesspam.
Viewing 1 replies (of 1 total)
  • The topic ‘custom field or custom variable’ is closed to new replies.