if(have_posts()):while(have_posts()):the_post();// Get the post content$content=get_the_content();// Check if the post content contains the file blockif(has_block('file',$content)){// Get the file blocks from the post content$file_blocks=parse_blocks($content);// Loop through the file blocksforeach($file_blocksas$block){if($block['blockName']==='core/file'){// Get the file URL from the block attributes$file_url=$block['attrs']['href'];echo'<p>File URL: '.$file_url.'</p>';}}}endwhile;endif;