Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I´m wondering if I can get the Post ID or permalink to be send as part of subject o message content of contact form7, any Idea?

share|improve this question

closed as off-topic by birgire, toscho Jul 26 at 9:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
This may be useful wordpress.org/support/topic/… –  Manigandan Arjunan Jul 17 '13 at 3:54
    
    
@ManigandanArjunan: And how is this helpful? Both links you provided has nothing to do with question... –  Krzysiek Dróżdż Jul 17 '13 at 5:47

1 Answer 1

up vote 1 down vote accepted

Contact Form 7 has some special mail tags (http://contactform7.com/special-mail-tags/) You can insert them into the Message Body field or other fields in the Mail section.

  • [_remote_ip] - This tag will be replaced by the sender’s client IP address.
  • [_user_agent] - This tag will be replaced by the sender’s user agent information.
  • [_url] - This tag will be replaced by the URL of the contact form.
  • [_date] - This tag will be replaced by the date of the submission.
  • [_time] - This tag will be replaced by the time of the submission.
  • [_post_id] - This tag will be replaced by the ID of the post which contains the contact form.
  • [_post_name] - This tag will be replaced by the name (slug) of the post which contains the contact form.
  • [_post_title] - This tag will be replaced by the title of the post which contains the contact form.
  • [_post_url] - This tag will be replaced by the permalink of the post which contains the contact form.
  • [_post_author] - This tag will be replaced by the author name of the post which contains the contact form.
  • [_post_author_email] - This tag will be replaced by the author email of the post which contains the contact form.

So [_post_url] should do the trick ;)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.