This is how i’m currently grabbing specific Field Data from a Block, just want to know it’s the ‘right’ way or not.
// Get the post_content, parse post_content & return all the blocks
$post_content = get_the_content( get_the_ID() );
$blocks = parse_blocks( $post_content );
// Start & End Dates from ACF Fields
$acf_project_location = $blocks['attrs']['data']['project_location'];
$acf_start_date = $blocks['attrs']['data']['start_date'];
$acf_end_date = $blocks['attrs']['data']['end_date'];
Any feedback would be greatly appreciated.