• Resolved mroesele

    (@mroesele)


    Hi there,
    the plugin works wonderfully but the detection of the shortcode does not consider shortcodes within custom fields created by ACF.
    This results in a red error message which can not be disabled.
    As ACF is pretty much a standard for WordPress Websites, it would be great if you could enable the plugin to support ACF fields.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mroesele

    (@mroesele)

    I just found the option to “Suppress the message in the dashboard if the settings are not data protection compliant.” but nevertheless it would be really great if the plugin could support ACF fields.

    Plugin Author Schweizer Solutions GmbH

    (@schweizersolutions)

    Hey, thank you for reporting.

    I’m not sure what kind of problems you have with ACF and our plugin. But I think that ACF does not execute the shortcode by itself.

    Did you have tried someting like that?

    if ( get_field('FIELDNAME') ) {
    	echo do_shortcode( get_field('FIELDNAME') );
    }
    Thread Starter mroesele

    (@mroesele)

    The problem is not about getting the shortcode to work.
    The problem is that your plugin doesn’t recognize the presence of the shortcode in ACF fields.

    This leads to an incorrect error message in your plugin settings that the shortcode is not in use.

    If you navigate to Settings > GA Opt-Out ( wp-admin/options-general.php?page=gaoo ) there is a block called “Current status of this website”.
    There you can see “Found shortcode on page” printed in red and marked with a red “x” even if the shortcode is in place (in an ACF field and not in the content editor).

    Plugin Author Schweizer Solutions GmbH

    (@schweizersolutions)

    Okay, great thank you for your help. We’ll fix it for the upcomig version which should be released this week ??

    Thread Starter mroesele

    (@mroesele)

    Great news – thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode not found in ACF field’ is closed to new replies.