The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Contact Form 7
Custom Field $name (1 post)

  1. rubien
    Posted 5 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

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

About this Topic