-
matt_hc
I’m using ACF Pro, and I have created a field group for a custom post type. One of the fields in that field group is “email” which is the email address. In the query loop, I can get the email to display fine. However, I cannot set the email as a link using mailto:
In the “Link To” field, it will let me select “Post Meta,” and then it gives me a new field for “Meta Key.” I select “email” which again is the ACF email address field for my field group. This does create a link on the email output. However, it’s linking back to the home page instead of creating a mailto: link using the email. I can’t figure out what is going wrong or how to get the mailto: link set.
When I try to set it to link to the email meta key, I get the following for the dynamic tag to insert:
{{post_meta key:email|link:post_meta,email}}
But that doesn’t work.
-
Hi there,
1. use a button block instead of text.
2. set the link destination to
mailto:{{post_meta key:email}}
https://app.screencast.com/D0B4IAkK1Lhl2 -
matt_hc
Perfect. I don’t know why I overlooked that.
-
No Problem 🙂
- You must be logged in to reply to this topic.