Use Shortcodes in iframe src=
-
Hello,
I am trying to include [currentuser_id] shortcode in iframe url.
When I try using this short code in a link like:
<a href="https://www.test.com/[currentuser_id]">TEST</a>
I get the link
https://www.test.com/1
as I am userID 1.But when I use the same shortcode in iframe src like:
<iframe src="https://www.test.com/[currentuser_id]"></iframe>
I get the iframe url as:
https://www.test.com/[currentuser_id]
. So the shortcode isn’t really replaced with the User Id.How can I fix it?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use Shortcodes in iframe src=’ is closed to new replies.