12 Comments

  1. David Decker

    The “ACF Blocks” on org and with domain acfblocks.com is an independent product from the original “Advanced Custom Fields”, but it requires it.

    I know that the naming of “ACF Blocks” for a plugin here is not ideal. Just would mention that these are 2 different devs/ products.

    Report

  2. David McCan

    Congrats to the ACF team for bringing such value and utility to the plugin.

    This shows that the WP Core team could implement a PHP Block API if they wanted to. Doing so would make block creation accessible to more developers. I hope they get inspired.

    Report

  3. Jay Okey

    Glad to see the ACF team making block creation easier this will make the transition to Gutenberg easier.

    Just a suggestion, I think the article should make it clear that ACFBlocks.com while requiring ACF was not created by the Elliot and ACF team.

    Report

  4. Kadai Crosshansen

    If creating blocks with Custom Fiels is going to be that easy like how it is shown in the featured image, then this is going to improve a lot the enviroment for developing blocks.

    But on the other hand, creating a block in javascript that renders on server is not that hard…

    Maybe the only problem I have come across, badly, with Javascript and React with gutenberg is how to handle deprecations when you update your block…

    Easiest way I have found out is to simply return a “new block” of the same block you are updating.

    Of course, lerning javascript was much more easy than I expected. But I am only playing with the surface still.

    But one thing is sure: When you develop blocks the PHP way, you save yourself a bunch of issues.

    Report

  5. Jeff van Loben Sels

    Elliot Condon and team do it again. For me, half of the pleasure of development projects for WordPress is using ACF. : )

    Report

  6. Frederike

    > This is one example of how the WordPress product ecosystem continues to evolve to support developers in the transition to a more JavaScript-powered WordPress.

    Well, looks more like that one developer of ACF Pro makes it possible that all the other developers do NOT need to evolve with any transition to JavaScript.

    Thanks Elliot.

    Report

  7. WPezDeveloper

    “ACF blocks are rendered using a PHP template file or a callback function that allows full control of the output HTML and live previews while editing the blocks. ”

    For those who don’t already know, you can use the WP Core (PHP) function register_block_type() and the ‘render_callback’ arg to override the frontend presentation of any block. However, you’ll be subject to how the block stores its attributes.

    https://developer.wordpress.org/reference/functions/register_block_type/

    Report

  8. mfs

    Has anyone seen any info / docs on what is going on under the hood here? Aside from not having to learn React, what are the advantages and/or disadvantages?

    Yes, the no need to learn React can be a benefit. But does that come at some other cost?

    Report

  9. Daniel Dan

    Has anyone seen any info / docs on what is going on under the hood here? Aside from not having to learn React, what are the advantages and/or disadvantages?

    Yes, the no need to learn React can be a benefit. But does that come at some other cost?

    Report

  10. papercheap

    Wow, six months of hard work. How many developers worked on this project?

    Report

Comments are closed.

%d bloggers like this: