But how does the actual HTML get on the page? How does that SQL data translate into a page full of blocks?
Normally the HTML for a block is inside the HTML comments.
However, much like shortcodes, ACF blocks are rendered in PHP, so when the post is processed during the_content filter, that block is replaced with the rendered HTML. WordPress knows to do this because ACF registered the block and provided a render callback function to call.
So this is essentially a more modern version of a shortcode with a better UI and developer features ( and the bonus that you don’t get a raw shortcode displayed on the frontend if ACF is deactivated )
As for how ACF then retrieved the data from the database, you would need to ask in an ACF forum, as that is unique to ACF blocks.
HTML not wrapped in the comments is interpreted as classic content from the classic editor when edited.
Related Posts:
- Is there a way to list all used/unused WP templates?
- Gutenberg & Pre-formatted Templates: Core Block Attributes
- Gutenberg Editor – Template Doesn’t Match Error
- How to replace WordPress sidebars (widget areas) with Gutenberg
- Display HTML only if Custom Field has a Value
- How do you override Post template when using Query Loop block?
- ACF image field to WordPress featured image
- Advanced Custom Fields – display when specific template used?
- How to Increment ID value within ACF Repeater Field Loop
- How to custom page template for the Gutenberg editor
- Use PHP templates as blocks
- Can I add a default Block to my custom theme?
- Is there a way to create a block template that is not limited to a post type?
- ACF costum date format [closed]
- Dynamically Insert Image Into Stylesheet
- Can you use block patterns in block templates or insert them programmatically?
- Change default template in the block editor (Gutenberg)
- Query the database after get_header() has been included
- How to set up page fields with gutenberg instead of ACF
- How to limit block activity (insertion/deletion) to inside of a Block Template on the Admin Screen?
- templates page not showing on gutenberg editor
- Category theme template becomes default template for child theme
- Adding new Template Parts in the Block Editor when using Classic Themes
- Where is get_header(‘shop’) file in Woocommerce templates
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- WP frontend output of custom textarea fields not respecting line breaks. In admin it’s OK
- Custom reset password template after forgot password request
- Child Theme: how to override variables?
- How to create tag.php
- Get template part vs locate template function
- Tools for Converting an Existing Website Design to a WordPress Template?
- author.php added to template not working on Nginx server
- wordpress – load a template based on the URI
- How to include template according to meta post value
- Using Includes in Templates in Document Head
- How to show scaled featured image in template?
- Load template inside a parent template
- Child theme TEMPLATEPATH issue
- WordPress Gutenberg, update post content programmatically
- Which has more impact on site performance? Template overrides or hooks
- Subpage template
- Remove WordPress/Gutenberg button styles for ACF blocks
- What should I put on my index.php?
- How To Create WooCommerce Custom Template For Specific Product?
- How to Use Twig + Timber with Multiple Loops based on Meta Key Value
- Programatically create a page
- Missing .twig files in wordpress theme editor
- create-guten-block in wordpress theme?
- Directly using pure JWPlayer JS (but NOT WP Plugin)
- Login page theming?
- I want to add a custom “all posts by author” by authors name. How?
- Advanced templating / WordPress as a CMS questions
- Redirect template based on permalink rather than $wp_query
- displaying category and subject posts
- How to duplicate a page template but make minor changes to the header?
- Custom templates vs page-slug
- get_template_directory() still returning path to previous theme
- URL / Templating system advice [closed]
- What’s the purpose of $wp_did_header?
- Trying to display short code content in template file with do_shortcode()
- Unable to add template to page set as Posts page in WP V 4.6.1
- How to use index.php as a template for archives?
- How to customize WooCommerce templates to avoid override upon update [closed]
- Creating new content types (Pages, posts, testimonials, tigers, oh my!)
- How to access .html file that’s located in the theme folder from the browser?
- Way to use one template but be able to call different top graphics?
- Differnt page template for page 2 of blog feed
- How to implement my custom development multiple PHP page work into WordPress?
- How to get ACF value inside Gutenberg Block from another page or template? I’m using Timber too
- Create template for just a print
- dynamic_sidebar() stopped working
- How to use single.php for creating, reading and editing Custom Posts with ACF
- Index template always follows page_template() template?
- WP overwrites my setup_postdata() setup
- wp_list_authors() returning the wrong member url
- Sending email for the custom form in WordPress
- Hard Coding Components on a Client Specific Websites
- How to use another file instead of home.php
- Assigning custom page templates to a static blog page
- Can i exclude certain page templates for a specific role?
- Template_redirect for child custom post types
- Using a specific template for front page only
- Gutenberg blocks (block editor) with get_the_excerpt and get_the_content, using ACF
- ACF Gut block broke wordpress default style?
- Child theme enqueueing style.min.css not style.css
- Exclude certain template from wp_list_pages
- Why wordpress custom template comments shows Undefined index?
- How to add variables to a template
- Update body class based on theme as well as a html attribute
- Is it possible to set a custom post type template with code?
- Fix for Chart.js removing Admin Bar
- Why is this array not working?
- Single Post Templates Doubt
- strange behaviour of template_redirect in IE8
- How do i load a different template for different users screen width
- MailPress plugin: table inline style tag removed when sending the newsletter
- Custom Archive with Content for Custom Post Type
- Implement HEAD and TITLE tags with DB DATA
- Custom Post Type Trouble
- How to change the selected Template using javascript?