Skip Navigation

[Closed] Custom Field in Email Subject on Button Click

This support ticket is created 4 years, 3 months ago. 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1843299

Hi

I am creating a custom template and have a button to enquire about a select item. E.g. a customer views a custom post type, in this case a single product. There is a button on each product page for an email enquiry. I would like the button to open up an email using a mailto: link.

I would like to insert a custom field within the subject line of the email. Is it possible to insert custom field this way, or is there an alternative to make this possible?

Thanks in advance for any help.

#1843529

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Thank you for getting in touch.

Actually yes it is possible to do. Simply just using the types shortcode to display the email on the frontend like below should generate the correct output.

[types field="my-email"][/types]

Should give

<a href="mailto:my-email@my-domain.com" title="my-email@my-domain.com">my-email@my-domain.com</a>

Can you let me see a screenshot of how you are adding your custom field to the frontend.

Thanks,
Shane

The topic ‘[Closed] Custom Field in Email Subject on Button Click’ is closed to new replies.