1

我的联系表格中有很多字段,我希望空白字段不要显示在收到的电子邮件中。

有没有办法通过在消息正文中添加 php 代码(wordpress > admin > contact form)来做到这一点?任何指针都会非常有帮助。

4

2 回答 2

8

Simply check the checkbox parallel to the text "Exclude lines with blank mail-tags from output", under the message body field in your wp-admin contact form 7.

于 2015-04-16T13:29:43.653 回答
1

以下是有关如何完成此操作的信息:http ://wordpress.org/support/topic/plugin-contact-form-7-how-to-do-away-with-blank-lines-in-email-for-unfilled -form-items

您需要在 functions.php 文件中添加几行代码。

于 2013-04-29T14:32:53.477 回答