Contact Form 7
[resolved] [_post_author_email] not working (4 posts)

  1. radiantfind
    Posted 4 years ago #

    I am trying to use [_post_author_email] in author.php so that my users can contact authors via email contact form. I have seen post on here where people have gotten it to work but i can't figure it out. I checked in special-mail-tags.php and the filters there seem to rely on $post->post_author ect whereas the codex for author.php is $curauth->user_email; ect. I can't figure out how the other person got it to work. Also the error I am getting has a red border

    Caveat: It works when I Manually enter a email in the To: block.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 4 years ago #

    See Special Mail Tags

    Note that the [_post_*] tag has value only when you put the contact form into content of a post or a page. They are not available if the contact form is put inside a sidebar widget.

  3. radiantfind
    Posted 4 years ago #

    its not in the widget it is in author.php
    could i create a shortcode to pull the email from $curauth->user_email;

  4. radiantfind
    Posted 4 years ago #

    I found a better method for this.

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