Support

Account

Home Forums ACF PRO Question set Global variable ACF Reply To: Question set Global variable ACF

  • Thank you @hube2, last question.Since I often use combinations combined with fields acf which often are repeated in various parts of the template (such as the name of the couple, and if this alternative is shown as an example), what do you think the use of functions like this?

    
    function my_function(){
      $biography_groom = get_field('field','option');
      if(!empty($biography_groom)){ 
        echo $biography_groom;
      } else {
        _e('Here to tell a brief description of the bride. You can put whatever you like, even your intentions towards the groom.','italian-wedding-day');
      }
    }