This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Acf support – Shortcodes in link fields of Page Builder widgets

7 years ago · Last reply by Alex S 7 years ago

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

7
  1. sfriedle 7 years, 3 months ago

    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. Alex S Staff 7 years, 3 months ago

    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. sfriedle 7 years, 3 months ago

    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. Alex S Staff 7 years, 3 months ago

    Hi Sfriedle,

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

  5. sfriedle 7 years, 3 months ago

    Hi Alex,

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

    Example:

  6. sfriedle 7 years, 3 months ago

    Example:

    <iframe src="[acf field='website']"></iframe>
  7. Alex S Staff 7 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread