Home Forums Front-end Issues parse_blocks get custom field


parse_blocks get custom field

  • 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() );

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.