Hi yellofish,
are you sure your syntax is correct? $_GET is supported by the plugin.
Best regards,
Alexander Fuchs
So should this work this way or do I have an error elsewhere?
// URL: https://www.mywp.com/here/?sample=10
echo $_GET['sample'];
That way I don’t get any output. I am also looking into add_query_arg
BTW, the way I use out plugin, I have a php file in a subfolder below public_html that can’t be reached from the web and link it to my pages like that:
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "../../files/my_php_code.php";
include($path);
?>
I just prefer to write on a large page 😉
The problem could be, that your hoster is blocking the usage of the $_GET variable in the Php eval() function.
The syntax of your code should be correct.
Mhm, no. I just tried it with a directory on that domain, but out of wordpress, and I can get the value echoed. So it’s not server related.
I may go the REGEX way, I have only two strings I need.