Support

Account

Home Forums Gutenberg Look to access ACF Gutenberg block content outside the loop Reply To: Look to access ACF Gutenberg block content outside the loop

  • echo apply_filters( 'the_content', get_post_field('post_content', $id ) );

    Replace $id with the ID of the post with the blocks you want to include. I’ve created a “header” and “footer” custom post types which I use solely for storing specific blocks I designed for said parts (which basically allows me to grab the desired “header” and “footer” posts/blocks from wherever I want).