Wordpress — динамический URL-адрес внутри короткого кода ⇐ Php
-
Гость
Wordpress — динамический URL-адрес внутри короткого кода
I am creating a wordpress site with an embedded booking form.
Example:
I would like to create a dynamic tag which I can input into this shortcode. I want to simply track the URL of the page where the form was submitted on my site.
I tried to create a function using php found here https://www.prodjex.com/2017/07/worpdre ... rrent-url/
The result however was the field "Webpage" returned "[geturl]" as text instead of calling the function.
Is it possible to call this function within the shortcode? Or is there a different solution available?
Источник: https://stackoverflow.com/questions/781 ... -shortcode
I am creating a wordpress site with an embedded booking form.
Example:
I would like to create a dynamic tag which I can input into this shortcode. I want to simply track the URL of the page where the form was submitted on my site.
I tried to create a function using php found here https://www.prodjex.com/2017/07/worpdre ... rrent-url/
The result however was the field "Webpage" returned "[geturl]" as text instead of calling the function.
Is it possible to call this function within the shortcode? Or is there a different solution available?
Источник: https://stackoverflow.com/questions/781 ... -shortcode
Мобильная версия