Support

Account

Home Forums Front-end Issues replace the_content to ACF Reply To: replace the_content to ACF

  • You would need to add a new filter to the_content, this is a really basic example:

    
    add_filter('the_content', 'replace_content');
    function replace_content($content) {
      $value = get_field('your_replacement_content_field');
      if ($value) {
        $content = $value;
      }
      return $content;
    }