Archived topic
Can A Dynamic Link Be Edited/Customised?
3 replies · Started by Pete on January 23, 2022
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?
Hi there,
you would need to filter the data - Tom provides an example here fore prefixing email and telephone links:
Perfect, thanks David.
You're welcome