0

I want to use a wordpress shortcode in anchor tag of html

I want to get value (phone number) from a wordpress shortcode and use it in this anchor tag href link: <a href="https://api.whatsapp.com/send?phone=[wpuf-meta name="WhatsApp"]"> send message</a> But unfortunately the WordPress shortcode doesn't work in anchor tag, so can anyone help me In this coding... Tried using PHP, but got confused as not good at PHP!!

25th Mar 2019, 10:41 AM
Mohammed Raza
Mohammed Raza - avatar
2 ответов
0
://Where are you using this short code, i mean in which page
25th Mar 2019, 6:54 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
In the WordPress post... The shortcode is working when I use it without any link!! It gets the authors phone number
26th Mar 2019, 4:57 AM
Mohammed Raza
Mohammed Raza - avatar