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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users