post_author ); // For backwards compat. $name = preg_replace( '/^wpcf7\./', '_', $name ); if ( '_post_id' == $name ) $output = (string) $post->ID; elseif ( '_post_name' == $name ) $output = $post->post_name; elseif ( '_post_title' == $name ) $output = $post->post_title; elseif ( '_post_url' == $name ) $output = get_permalink( $post->ID ); elseif ( '_post_author' == $name ) $output = $user->display_name; elseif ( '_post_author_email' == $name ) $output = $user->user_email; return $output; } ?>