WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Custom Field $name (1 post)

  1. rubien
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic