我在Wordpress模板中创建了一个表单,进行一定的计算,并在模态引导中显示结果。This is executed when the call to mail.php failed. e.preventDefault();});
当我在一个单独的页面中创建一个表单而不放入wordpress模板时,它可以工作。但是当我将代码放在wordpress模板中时
在wordpress中,我使用fancybox显示联系人,现在我必须使用ajax提交此表单,但wordpress中不调用ajax。我在wordpress包之外尝试了一下,它工作得很好。document.getElementById("txtComment").value;
var subject1=document.getElementById("txtSubject&
我正在使用ajax开发一个预订表单。我面临两个问题。一种是在页面或post中使用表单的短代码,在WP后端5.2.3版本中显示表单。另一个问题是,当我使用这个函数check_ajax_referer()检查nonce字段时。窗体不会出现在视图页中。仅在视图页中显示-1。/*Plugin URI: http://example.com
D