I’m attempting to get the custom field ‘summary’ out of every block used on a page (outside the main page query) in order to create a page index at the top, I’m using the following code, but am a little unsure how I’d go about just pulling out the value of the custom field ‘summary’ from each loop at present it prints the array with all values, any pointers would be much appreciated.
parse_blocks( get_the_content() );