• Resolved vilanova

    (@vilanova)


    Hi, how are you? How can I call an ACF(Advanced Custom Fields)-generated custom field in a placeholder?
    what I have so far is:

    add_filter(’em_event_output_placeholder’,’my_em_styles_placeholders’,1,3);
    function my_em_styles_placeholders($replace, $EM_Event, $result){
    if( $result == ‘#_PROFESSOR’ ){
    $replace = ‘none’;
    $replace = $EM_Event->post_id;
    }
    return $replace;
    }

    I would like to return the information that is recorded in a field called teacher
    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘placeholder and ACF’ is closed to new replies.