PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Email notification pulled in from custom post type custom field - hidden address

  1. Hey all...

    I've been struggling with a particular task for awhile...and I feel like the solution is close.

    What I want to do is this:

    I currently have a Custom Post Type of "Contacts". Stored with each record is an email address in a Custom Field. I'd like to loop through the contacts list and print out a link to my General Contact Form where the Notification Email would be dynamically routed to the stored email address of that particular Contact.

    I know this problem has been solved before....

    But, I don't see where it has been done in such a way that the email address isn't passed along as a parameter in the URL. In my case, I'd like to pass just the Post ID (or slug) and be able to query the stored email value when the form is submitted.

    Is this possible? I'd rather not reveal these various contact email addresses...and I'd like to use the same contact form. Those are the two criteria.

    Thanks in advance...

    Posted 10 years ago on Tuesday June 18, 2013 | Permalink