display name of form submission on event-meta-event-single.php

WordPress Event Management, Calendars & Registration Forums Frontend Submissions display name of form submission on event-meta-event-single.php

This topic contains 4 replies, has 2 voices, and was last updated by  Stephen Harris 7 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26860

    Hi,

    I am customizing my single-event.php page using the event-meta-event-single.php page. I manage to add my own custom ID but I cannot get the name.

    for example, I have a custom meta tag called eo_point_person_email, and my code is:

    <?php if ( get_post_meta( get_the_ID(), ‘eo_pt_person_phone’, true )) { ?>

  • Point Person Phone: <?php echo esc_html( get_post_meta( get_the_ID(), ‘eo_pt_person_phone’, true) ); ?>
  • <?php } ?>

    this works fine. But I cannot query the name: Why is this not working?

    <?php if ( get_the_terms( get_the_ID(), ‘name’ ) ) { ?>

  • Point Person Name: <?php echo get_the_term_list( get_the_ID(),’name’, ”, ‘, ‘, ” ); ?>
  • <?php } ?>

Webmaster CCC