Skip Navigation

[Resolved] adding a subject to the custom type email

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 11 months, 1 week ago.

Assisted by: Waqar.

Author
Posts
#2680895

when I make a email link in HTML, I can add subject to the link like this
name@email.com
Doing makes the subject automatically populate in the new email.

How do I do this in a Content Template using an Email custom post type?

I tried this:
[types field='email' output='raw'][/types]

But gave me a blank on the front end.

Please help,

Thanks

#2680938

Hi,

Thank you for contacting us and I'd be happy to assist.

Here is a slightly updated code that works on my test website:


<a href="mailto:[types field='email' output='raw'][/types]?subject=EMAIL SUBJECT HERE">[types field='email' output='raw'][/types]

I hope this helps and let me know if you need further assistance.

regards,
Waqar

#2681047

This worked great! Thanks. Do you know of a way to get the Post Title of the property to be the Email Subject?

When I put [wpv-post-title] as the Email Subject it uses the Post Title of the agent's page in the Email Subject, not the property he is connected to.

Is there a way to pull the property title, which is the Post Title on this page, and the property this agent is connected to thru a relationship, into that Email subject?

The ultimate goal is to have a function where people can contact the agent about the property they are viewing.

Thanks for your time.

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-using-the-wpv-post-title-shortcode-for-the-related-post/

#2681403

Thanks for the update and glad that it worked.

I've created a separate ticket for your question about the title of the related post and will follow up on that shortly.
( ref: https://toolset.com/forums/topic/split-using-the-wpv-post-title-shortcode-for-the-related-post/ )

You're welcome to mark this ticket as resolved and start a new one for each new question or concern.