Insert PHP blocks not working correctly
-
Will, thanks for a awesome plugin. I am having an one issue. We are using Avada theme, with its page builder, I use a code block with the following code snippet:
<script> $(document).ready(function () { var pdf = '[urlparam param="pdf" /]'; var url = '[insert_php] echo esc_url(get_permalink(pdf)); [/insert_php]'; window.location = url; }); </script>
the problem line is this one: var url = ‘[insert_php] echo esc_url(get_permalink(pdf)); [/insert_php]’;
upon redirect it sends me back a url value ofhttps://dev.example.net/thank-you/%5Binsert_php%5D%20echo%20esc_url(get_permalink(pdf));%20[/insert_php].
So it is not parsing the Insert PHP tags correctly. Any help would be greatly appreciated.
Thanks,
Darren
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Insert PHP blocks not working correctly’ is closed to new replies.