Navigation überspringen

[Gelöst] adding a subject to the custom type email

This support ticket is created vor 2 years, 4 months. There's a good chance that you are reading advice that it now obsolete.

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 -

Zeitzone des Unterstützers: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 2 years, 4 months.

Assistiert von: Waqar.

Author
Artikel
#2680895

when I make a email link in HTML, I can add subject to the link like this
versteckter Link
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:
versteckter Link

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.

Neue Threads, die von Waqar erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

https://toolset.com/de/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.