Insert PHP code in WordPress page

I have made a WordPress site, it’s still in maintenance mode. I’ve an iFrame in my page, it works fine. But, in that iFrame, I want a PHP code for detecting the referrer and a cookie. These are my codes:

<?=urlencode($_SESSION[‘referrer’])?>

and

<?=$_SESSION[‘aid’]?>

How can I insert this in my iFrame SRC? Like this:

src=”//mysite.com/?aid=<?=$_SESSION[‘aid’]?>&ref=<?=urlencode($_SESSION[‘referrer’])?>”

Does anyone have a way to do this. I want to publish my site soon.

Read more here:: Insert PHP code in WordPress page

Leave a Reply

Your email address will not be published. Required fields are marked *