Viewing 3 replies - 1 through 3 (of 3 total)
  • Add following code in functions.php file of child theme or custom plugin:

    add_action('tribe_events_single_event_before_the_content','fun_display_custom_field_value',10);
    function fun_display_custom_field_value()
    {
    	$id = get_the_ID(); //Get current event id
    	echo get_post_meta($id,'_prueba',true);
    }
    Brook

    (@brook-tribe)

    Howdy duplografic,

    WisdmLabs provided a great solution. Of note is that their snippet actually uses the get_the_ID() variable. That is likely the cause of your problem.

    Cheers!
    – Brook

    Thread Starter duplografic

    (@duplografic)

    Thanks!!!! It’s a great solution and works perfect!! It’s a very usefull function. Thanks WisdmLabs

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Filed in single-event.php’ is closed to new replies.