Wordpress Recaptcha 在使用页面创建的表单上使用 [英] Wordpress Recaptcha use on form that created using page
问题描述
我正在尝试使用 wordpress recaptcha 插件.
我尝试使用的插件(如 wp-recaptcah,更好的 Wp recaptcha)仅适用于评论表单.
但就我而言,我创建了一个页面,并在其中插入了从管理面板管理的 HTML.
我不明白如何在表单中使用该插件.
我没有得到任何可以直接在页面上使用它的短代码 HTML 标签.
对我如何实现这一目标有什么建议吗?
我在管理面板中创建了一个页面并插入了此代码.我的表单是通过 AJAX 提交的:
这里使用了一些静态 Html </div><form id="main-form"><div><label>名称</label><input class="span6" type="text" maxlength="45" name="name"/><div><label>电子邮件</label><input class="span6" type="text" maxlength="45" name="email"/>
<div><label>电话号码</label><input class="span6" type="text" name="phone" placeholder="输入电话号码"/>
<div><label>消息</label><textarea class="span12" name="message" rows="6" ></textarea>
<div><button class="btn >发送查询</button></div></表单><div class="second">这里使用了一些静态 Html </div>
您可以使用 reCAPTCHA Form .它给你一个表格和recaptcha.http://wordpress.org/plugins/recaptcha-form/
否则你可能想要以下一个,http://wordpress.org/plugins/wp-recaptcha/
I am trying to use a wordpress recaptcha plugin.
The plugin (like wp-recaptcah, better Wp recaptcha) that I am trying to use is only working for the comment form.
But in my case I have created a page and there I have inserted HTML that is managed from the admin panel.
I don't understand how I can use the plugin with my form.
I did not get any shortcode HTML tag to use it directly on the page.
Any suggestion how I can achieve this?
I have created a page in the admin panel and inserted this code. My form is submitted via AJAX:
<div class="First"> Here some static Html is used </div>
<form id="main-form">
<div>
<label>Name</label>
<input class="span6" type="text" maxlength="45" name="name" />
</div>
<div>
<label>Email</label>
<input class="span6" type="text" maxlength="45" name="email" />
</div>
<div>
<label>Phone Number</label>
<input class="span6" type="text" name="phone" placeholder="Enter Phone Number" />
</div>
<div>
<label>Message</label>
<textarea class="span12" name="message" rows="6" ></textarea>
</div>
<div><button class="btn >Send Enquiry</button></div>
</form>
<div class="second">Here some static Html is used </div>
You may use reCAPTCHA Form . It give u a form along with the recaptcha. http://wordpress.org/plugins/recaptcha-form/
or else you may be wanting the following one instead, http://wordpress.org/plugins/wp-recaptcha/
这篇关于Wordpress Recaptcha 在使用页面创建的表单上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!