WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. radiantfind
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    I found a better method for this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic