{"id":5568546,"date":"2014-12-11T17:15:26","date_gmt":"2014-12-11T17:15:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/contact-form-7-google-recaptcha\/"},"modified":"2016-08-22T13:26:26","modified_gmt":"2016-08-22T13:26:26","slug":"contact-form-7-google-recaptcha","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/contact-form-7-google-recaptcha\/","title":{"rendered":"Contact Form 7   Google reCAPTCHA?"},"content":{"rendered":"<p>Thank you for reading my problem in advance. I am trying to incorporate Google&#8217;s new reCAPTCHA (https:\/\/www.google.com\/recaptcha\/) into a WordPress site that is using Contact Form 7. I have inserted the front-end code provided by Google:<br \/>\n<code>&lt;div class=&quot;g-recaptcha&quot; data-sitekey=&quot;YOUR_SITE_KEY&quot;&gt;&lt;\/div&gt;<\/code><br \/>\nHowever, I can&#8217;t figure out how to get the server-side integration configured. From what I can tell, I need to insert this code into my contact form HTML (see https:\/\/code.google.com\/p\/recaptcha\/wiki\/HowToSetUpRecaptcha#Part_2:_Installation):<\/p>\n<pre><code>&lt;?php\n require_once(&#039;recaptchalib.php&#039;);\n $publickey = &quot;YOUR_PUBLIC_KEY&quot;; \/\/ you got this from the signup page\n echo recaptcha_get_html($publickey);?&gt;<\/code><\/pre>\n<p>When I do that on the Contact Form 7 backend, it just displays the text in between &#8220;&lt; ?&#8221; and &#8220;? &gt;&#8221;. I&#8217;m also a little confused about the other steps and there are not many resources online about this new captcha.<\/p>\n<p>Thanks again.<\/p>\n<p>-Trent<\/p>\n<p>https:\/\/wordpress.org\/plugins\/contact-form-7\/<\/p>\n","protected":false},"template":"","class_list":["post-5568546","topic","type-topic","status-closed","hentry","topic-tag-php","topic-tag-recaptcha"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5568546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5568546\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5568546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}