[Resolved] Can A Dynamic Link Be Edited/Customised?

Home Forums Support [Resolved] Can A Dynamic Link Be Edited/Customised?

Home Forums Support Can A Dynamic Link Be Edited/Customised?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2090606
    Pete

    Hello – am new to GeneratePress and all its cool features, so still getting to grips with things – but like what I see so far.

    For one of my CPTs, I am adding dynamic data to the Page Hero; outputting the post meta for address, phone number, and website. You can see the working example here: https://new.boroguide.co.uk/clubs/stafford-rangers/

    Is there a way, however, to edit/customise/manipulate the dynamic link option? To give an example, a phone number is entered into an ACF in its ‘pure’ form i.e. just the digits (as displayed). It is the same for the website.

    But I wish for the phone number to be properly linked e.g. “tel:01234567890” (the same applies for a website, albeit just affixing ‘https://’).

    Can this be done – and, if so, is it possible to advise on how to go about doing it?

    #2090913
    David
    Staff
    Customer Support

    Hi there,

    you would need to filter the data – Tom provides an example here fore prefixing email and telephone links:

    https://generatepress.com/forums/topic/postmeta-email-link-for-cpt-using-element-block-content-template/#post-2050339

    #2090959
    Pete

    Perfect, thanks David.

    #2091518
    David
    Staff
    Customer Support

    You’re welcome

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