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.

Adding leading text to Dynamic Tag output?

  • Use case: my custom field/meta key is location_phone_number holding data in the format of 123-456-7890.
    I’m using Dynamic Tags to display this and create a clickable link, but I need to prepend “tel:1” to the link output so it’s linked as href="tel:11234567890".

    Modifying the Dynamic Tag hasn’t worked so far, but I could just have the syntax wrong.

    {{post_meta key:location_phone_number|link:post_meta,location_phone_number}}

  • Hi there,

    Try to use the button block instead of text.

    and you can set dynamic content and dynamic links separately, and set the link destination to tel:{{post_meta key:location_phone_number}} like this:
    https://app.screencast.com/519ZZ7krO2izd

  • That did the trick – thanks!

  • No Problem 🙂

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