Guide to special tags for Contact Form 7 forms for WordPress

Contact form 7 is a plugin that allows you to configure forms for WordPress in a visual way. CF7 has a visual editor with which creating a form and integrating it into a page becomes a simple task that does not require programming. However, its simplicity hides an extensive group of possibilities with which to develop complex forms for our projects. Its response system allows us to send a copy of the email to a second recipient or a response to the user who sends the form, and allows us to use a series of advanced labels with which to enrich the e-mail.

These are all the tags that we can use in Contact Form 7, both in the body of the message and in any other form field:

LABEL DESCRIPTION
[_remote_ip] This tag will be replaced with the IP address of the user submitting the form.
[_user_agent] This label will be replaced with the User Agent information.
[_url] This tag will be replaced with the contact form URLs.
[_date] This label will be replaced with the date of shipment.
[_time] This label will be replaced with the time of shipment.
[_post_id] This tag will be replaced with the ID of the post that contains the form.
[_post_name] This tag will be replaced with the name (in the URL ā€“ SLUG) of the post that contains the form.
[_post_title] This tag will be replaced with the title of the post that contains the form.
[_post_url] This tag will be replaced with the permalink of the post that contains the form.
[_post_author] This tag will be replaced by the name of the author of the post that contains the form.
[_post_author_email] This label will be replaced with the e-mail of the author of the post that contains the form.

Keep in mind that the [_post_*]tag only takes value when the form is placed in the content of a post or a page. That value will not be available if placed in a Widget.

Scroll to Top