它可能在电子邮件正文中发送contatc表单名称?
[contact-form-7 id = "86" title =“ Contact form 1 ”]
我尝试了联系表格7动态文本扩展 - WordPress插件,但我的表单是模态项目,当我点击一个,显示模态,并更改网址(添加 - >?id = 23)但动态文本扩展名只能在重新加载页面中接受此字段 .
有帮助吗?
谢谢
我在functions.php中使用隐藏的输入字段和自定义短代码做了类似的事情 . 这也可能有所帮助
wpcf7_add_shortcode('hidden', 'wpcf7_sourceurl_shortcode_handler', true); function wpcf7_sourceurl_shortcode_handler($tag) { if (!is_array($tag)) return ''; $name = $tag['name']; if (empty($name)) return ''; $html = '<input type="hidden" name="' . $name . '" value="' . get_the_title() . '" />'; return $html; }
然后以联系表格7添加自定义标签
[hidden pageTitle]
在邮件设置中
Page title is: [pageTitle]
1 回答
我在functions.php中使用隐藏的输入字段和自定义短代码做了类似的事情 . 这也可能有所帮助
然后以联系表格7添加自定义标签
在邮件设置中