gamaup
Forum Replies Created
-
Hi @amicalmant,
Thanks for the kind words!
At the moment, the Image block doesn’t have an option to open images in a lightbox. However, this is a feature I’m actively planning to add, so you can expect an “Open image in lightbox” option in a future update.
The feature is planned for the free version, so no PRO license will be required.
Thanks for the suggestion and for supporting the plugin!
Hi,
Thanks for your feedback. I actually replied to your email about this a few days ago with some follow-up questions to better understand your setup.
If you have a moment, please check your inbox and reply there so we can continue troubleshooting and see what might be happening in your case.
I’ll be happy to take a closer look once I have a bit more information about your configuration.
Hi, thanks for pointing that out.
I have just updated the plugin repo to include the full source code, including the build files, so the compiled assets can be reproduced.
Please let me know if anything else is missing. I appreciate you bringing this to my attention.
Hi,
Thank you very much for reporting this and for the detailed explanation, including the repro steps. I really appreciate it.
You’re absolutely right about
nl2br()not being ideal for WYSIWYG fields, especially when the content already contains proper block-level HTML. It makes sense to let WordPress or ACF handle the formatting instead of manually injecting line breaks.I will update this in the next release to ensure WYSIWYG fields are processed using the proper content filters rather than
nl2br().Thanks again for taking the time to point this out.
Hi,
Thanks for reaching out.
You can view the full source code in the ww.wp.xz.cn SVN repository. The uncompiled files are available in the trunk folder here: https://plugins.trac.ww.wp.xz.cn/browser/acf-field-blocks/trunk
Hi,
Thank you for the detailed explanation and for sharing the sample code from your developer.
That makes sense. I can see how checking for ACF too early in the constructor would cause issues when ACF is bundled and loaded during theme setup. Hooking the check into
after_setup_themeis a solid approach.I will implement this improvement in the next update so the ACF presence check runs at the proper time and works correctly with bundled setups like yours.
Thanks again for reporting this and for providing a working example. It really helps 👍
Thank you so much for the wonderful review!
Regarding duplication, that functionality is not included in Blocks for ACF Fields. The plugin is read-only and only handles rendering or displaying ACF field values inside the block editor.
If you’re looking to duplicate field groups or field values, that would typically be handled by ACF itself or by a separate page/post duplication plugin.
Thanks again for your support and for taking the time to share your experience!
Hi René,
Thanks for the update, and sorry for the delay in releasing the oEmbed support.
Glad to hear you were able to fix it using the render_block hook.
Just to let you know, oEmbed support has now been released in the latest update. Feel free to update the plugin and give it a try.
Let me know if everything works well on your end.
Hi René,
Thanks for the kind words and for purchasing a license.
You’re right, oEmbed isn’t supported yet, but it’s currently being worked on. You can expect it to be available in the next few days as part of an upcoming update.
Thanks for your patience, and feel free to reach out if you have any other questions.
Best regards,
GamaHi,
Thanks for the detailed explanation. That helps a lot.
In this case, Blocks for ACF Fields is not able to handle this setup. The plugin can only display ACF field values from the current WordPress context (the post, page, or template being rendered). It does not support switching the field source dynamically based on a URL parameter such as
?id=123.However, there is an alternative approach that works well and is fully supported.
You can add an ACF Post Object field to your Event post type and use it to select the detailed post. This creates an explicit relationship between the event and its detailed page.
Then, on the event detail layout, you can:
- Insert the ACF Field block
- Select the Post Object field and set the display type to List (this will create a post loop)
- Inside the loop, insert another block to load the post content
This setup will display the selected detailed post directly inside the Event layout, allowing each event to control which detailed content is shown. Please note that displaying Post Object fields as a List is available in the PRO version of this plugin.
I hope this helps, and let me know if you have any questions about setting this up.
Hi Boki,
Yes, there is an option to center the text on the button.
You can find it directly in the floating toolbar above the block when the ACF Field block is selected. In that toolbar, you’ll see the text alignment controls, where you can set the button label to be centered.Best regards,
GamaHi Oliver,
I’ve just released an update that includes the fix for this issue (v1.2.8). You should now be able to load the custom fields from your linked “location” post inside the loop as intended.
Since you’re a Pro user, feel free to reach out to me directly anytime at [email protected] if you run into anything else or need help with your setup.
Thank you for your patience!
Best regards,
GamaHi Oliver,
Thanks for the detailed explanation, that helps a lot.
I’ve checked your case on my side, and I found the issue. The block should indeed allow you to load fields from the linked “location” post inside the loop, but something is preventing the field picker from switching to the correct post context.
I’m working on a fix right now and expect to have it resolved within the next few hours. I’ll let you know as soon as the update is ready.
Thank you for reporting this, really appreciate it!
Best regards,
GamaHi Oliver,
Yes. This is absolutely possible, but it requires the Pro version of Blocks for ACF Fields.
In your setup, both location and organizer are ACF Post Object fields attached to the event. With the Pro version, you can load Post Object fields as a loop, even if the field only contains a single item. Inside that loop, you can then display any custom field that belongs to the linked post type. In your case, the address fields from “location” or the phone/website fields from “organizer.”
I also have a short demo video that shows the exact concept (the example uses the same post type, but the method is identical for your case):
https://youtu.be/L53j_6ApCh4Best,
GamaHi,
I’ve released a new version of the plugin that fixes the “
sprintf is not defined” error in the block editor. Please update Blocks for ACF Fields to the latest version, and the issue should be resolved.