Support

Account

Home Forums ACF PRO Conditionally loading template part Reply To: Conditionally loading template part

  • I found the solution myself, thanks however for the attention! This is what worked for me:

     
        $field = get_field('showmap');
    
        if($field == '1'){
            echo 'content';
        }else{
            echo 'no content';
        }