Acf support – Shortcodes in link fields of Page Builder widgets
I’m currently facing the following problem with ACF (Advanced Custom Fields) and the Page Builder widgets:
When I enter the shortcode of ACF into a URL field of any PB widget, the entered shortcode text is taken as the link instead of the value of the ACF field.
Example:
Page Builder widget: “SiteOrigin Button”
Destination URL Input: [acf field=”website”]
The Output after saving the page: http://[acf%20field=website]
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
7The same problem also exists when entering the shortcode in the editor and within a href=”” or src=”” tag. So anywhere related to links doesn’t work.
Hi Sfriedle,
Unfortunately, the link form field doesn’t currently support shortcodes. I’ve logged this as a feature request.
Regarding your last reply, that’s odd. Does this issue occur with a non-ACF shortcode?
Hi Alex,
Thanks for your fast reply.
I’ve tested the last issue with different shortcodes and it only occurs with the ACF shortcode.
Hi Sfriedle,
Thanks. Are you able to use that shortcode on a non-SiteOrigin powered page?
Hi Alex,
I still face the same issue on a non-SiteOrigin powered page.
Example:
Example:
Hi Sfriedle,
What is outputting when viewing the page on the frontend? The provided HTML or nothing?
Based on the shortcode not working while using the base editor, I suspect the issue you’re facing is a general issue with the shortcode you’re using rather than anything specific to SiteOrigin Page Builder.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.