Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Query loop doesn’t give option to create mailto link for meta key

  • 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

  • Perfect. I don’t know why I overlooked that.

  • No Problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.