Home>Support>Acf support – Shortcodes in link fields of Page Builder widgets

Acf support – Shortcodes in link fields of Page Builder widgets

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 8 months ago sfriedle

    The 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.

  2. 6 years, 7 months ago Alex S
    Hi, I Work Here

    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?

  3. 6 years, 7 months ago sfriedle

    Hi Alex,

    Thanks for your fast reply.

    I’ve tested the last issue with different shortcodes and it only occurs with the ACF shortcode.

  4. 6 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Sfriedle,

    Thanks. Are you able to use that shortcode on a non-SiteOrigin powered page?

  5. 6 years, 7 months ago sfriedle

    Hi Alex,

    I still face the same issue on a non-SiteOrigin powered page.

    Example:

  6. 6 years, 7 months ago sfriedle

    Example:

    <iframe src="[acf field='website']"></iframe>
  7. 6 years, 7 months ago Alex S
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More