jmccole83
6/20/2019 - 10:17 AM

Output to index

public function index_content()
{
  $id = get_option( 'page_for_posts' );
  $post = get_post($id);
  $content = apply_filters('the_content', $post->post_content);
  return $content;
}
{{-- Output Gutenberg blocks --}}
<div class="page-content">
  {!! $index_content !!}
</div>