【发布时间】:2014-02-26 13:09:42
【问题描述】:
有什么方法可以将验证码添加到我在 WordPress 中的自定义表单中,我已经使用了一些插件,但它只允许在登录、评论表单等中添加验证码。
我用过 Google reCaptcha,我用过这个脚本
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=your_public_key">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=your_public_key"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>
它在联系页面上运行良好,但如果我点击提交,则未验证我应该在联系页面中放置什么代码,以便它与验证一起使用。
【问题讨论】:
-
所以你把你的代码放在那个页面,它没有显示?
-
是的,它在仪表板->页面->联系页面上不起作用