• Resolved rinh

    (@rinh)


    Hi!
    I’ve not tried Gutenberg in a while, but last I tried it I felt you all had done wonderful in improving it and I’ve been eager to be able to migrate to it from Elementor Pro. However there was this major feature missing: dynamic content from for example ACF without third party plugin.

    At the moment our website has custom fields from ACF that adds a date and time field to posts. In Elementor Pro you can use for example a heading or text field etc to be dynamic and show in the post what the author put in these custom fields.

    I’m aware there are premium plugins that currently add this feature to Gutenberg, like ACF Pro, JetEngine among others. But if I have to be blunt one might as well just keep Elementor Pro instead for its extra features.

    I wonder if dynamic content has been added to Gutenberg or if there are plans to add it in the future? I may be asking too much to be added for free, but it would be great!

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @rinh – I consulted with @greenshady, who’s more knowledgable in this area than me, and wanted to pass along his thoughts:

    There are three primary methods he shared, and it depends on the specifics of the use case as to which one would be most suited to your needs.

    1. You can add dynamic data via a custom pattern and the <!-- wp:pattern /--> block, particularly if that data is available before the init hook (when patterns are registered). However, this data becomes static when the pattern is changed and saved to the editor by the user.

    2. A custom block. If you have a several fields, it’s pretty trivial to create a small block with a <SelectControl/> component to just select the data you want to show.

    3. Custom shortcodes are OK too. They’re still fully dynamic and can be placed anywhere in the editor via the Shortcode block.

    At the moment our website has custom fields from ACF that adds a date and time field to posts.

    Justin said that both a custom block and shortcode would work in this scenario, saying: “I’d personally opt for a custom block type just because blocks are the primary way to handle custom things nowadays. I’d also add that when you use something like ACF, you are buying into their ecosystem. You either have to be willing to build out something custom to ‘do stuff’ with the data that this third-party plugin creates or download/purchase something that does it for you.”

    Thread Starter rinh

    (@rinh)

    Thank you very much, both of you, for the in-depth answer on this.

    I don’t know what I did wrong last time I tried with shortcodes, but I decided to try again after reading your post and it works! Custom block sound like a great option too although perhaps beyond me, but I’ll look into it too.

    With shortcodes working now the possibility is there to achieve this. Thank you again.

    Moderator Kathryn Presner

    (@zoonini)

    Awesome, thanks for letting us know – I’m so glad that was helpful.

    I’ll mark this thread as resolved but feel free to start a new one if you have other questions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamic content/fields/tags’ is closed to new replies.