Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Include and require? You just need either.
Thread Starter
Meeker
(@meeker)
I have discovered that the post strips out the php code, so I am trying out the plugin http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages.
Thread Starter
Meeker
(@meeker)
Hmmm, that did not work. The plugin was installed, but I still could not include that external code. Any ideas?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
“Did not work”, sorry, what testing method are you using to check whether it’s working?
Thread Starter
Meeker
(@meeker)
Ok I am inserting the code into the post, e.g.
[php] require(‘http://www.example.com/example.php’); [/php]
Saving, then going to the frontend, refreshing and then checking the source code. It is still stripped out from the post.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Write this;
[php] var_dump(require('http://www.example.com/example.php'));exit; [/php]
And see whether it returns true or false;
Thread Starter
Meeker
(@meeker)
Thanks for the efforts, it didnt work.