Contact Form 7
[resolved] Using Post-Title as subject (4 posts)

  1. whaler
    Posted 2 years ago #

    hey there,

    im using contact-form-7 on my site where users can use it to contact the admin to buy some of his old stuff. i use it within the article-template with this code

    <?php echo do_shortcode( '[contact-form-7 id="680" title="Kleinanzeigen"]' ); ?>

    Now, as this stuff gets a little bit of traffic, the admin cant keep up with the emails and identifying which mail belongs to which article. i would love to use the the article title as subject of the emails. any ideas on how to achieve that?

    i hope you guys could understand and help me.

    thank you!


  2. Takayuki Miyoshi
    Plugin Author

    Posted 2 years ago #

    See Special Mail Tags.

    You can use [_post_title] in the Subject field. But note that you need to place the <?php echo do_shortcode( '[contact-form-7 id="680" title="Kleinanzeigen"]' ); ?> shortcode inside the loop.

  3. whaler
    Posted 2 years ago #

    i dont really understand where i have to but the [_post_title], could you explain this a little bit?

  4. Takayuki Miyoshi
    Plugin Author

    Posted 2 years ago #

    Put it in the Subject field in Mail section.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic