• Resolved Howdy_McGee

    (@howdy_mcgee)


    Hello!

    I’m running into an issue where a form I’m calling via do_shortcode() does not display the Google ReCaptcha. If I navigate to a page where the shortcode is added to the Page Content via WordPress admin, both reCaptchas show up ( the shortcode from the page content and the recaptcha from do_shortcode() ). It’s almost like something necessary isn’t being enqueued when do_shortcode() is called.

    Can anyone else replicate this issue or suggest possible solutions?

Viewing 1 replies (of 1 total)
  • Thread Starter Howdy_McGee

    (@howdy_mcgee)

    Looks like the issue was, for whatever reason, the do_shortcode() was called underneath wp_footer() so the scripts were loading before the elements existed.

    The solution was simply moving wp_footer() below do_shortcode().

Viewing 1 replies (of 1 total)
  • The topic ‘ReCaptcha and do_shortcode()’ is closed to new replies.