Shane Jones

Co-Founder of Peadig, Freelance Developer and Consultant to Agencies in the North West

This post was written 2 years ago and therefore may not be as accurate as more recent posts.

If you have a https site and pull http content you can and probably will get a warning.

http content on a https site will also yield a warning

Add this in place of http/https to solve all problems.

<?=(isset($_SERVER['HTTPS'])?"https://":"http://")?>

Categories: PHP

Shane Jones

Posted by

Shane is the Co-Founder of Peadig, the WordPress framework and has gained over 40,000 downloads of his WordPress plugins. Shane also likes to tinker with API's and specialises in Facebook, Twitter, Instagram and Foursquare API. The views expressed in Shane's posts are his own and are not necessarily the views of his employers.

Leave a Reply