Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Custom Field $name

  • Hey everyone. I tryed following:
    I opened special-mail-tags.php and added following line:
    `elseif ( ‘_post_recipient’ == $name )
    $output = get_post_meta($post->ID, ‘recipient’, true);`
    before the output. Then I created a Custom field named recipient and defined it. After that I insered the _post_recipient shortcode in the contact form settings as “to:”. Well everything works fine the only problem I got it. It works fine as long as I use it within the post in the editor. As soon as I call the contact form outsite the post with the php command the _post_recipient shortcode fails. Anyone has a idea how to fix that?

  • The topic ‘[Plugin: Contact Form 7] Custom Field $name’ is closed to new replies.