[wd_asp elements=’search’ ratio=’100%’ id=1]

Add external PHP page to WordPress using Iframe ( Elementor)

14th August 2018

Wordpress - Show

wordpress category

As Elementor blocks all other methods due to security the only way is by registering a function in the functions.php file.

function dog() {

$ch = curl_init("http://aq.gthex.co.uk:10000/");

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content=curl_exec($ch);
curl_close($ch);
return $content;
}
add_shortcode('codehaven', 'dog');

Then call it by the short code
[codehaven]
Add a text area and just add this code.