Wednesday, 16 January 2013

Pinterest Pinboard Widget not showing images because of https

After installing the Plugin Pinterest Pinboard Widget  on my Wordpress 3.5 website; I noticed that the images from Pinterest weren't showing.

I also noticed that the image address started with 'https'  if I changed this to 'http'  then there was no problem. 

So here's the fix that I used.




$image = $pin['image'];

around line 140

// hack to display http://  instead on https:  in image url
                    list($http, $therest) = explode(":", $image);
                    $image = 'http://'.$therest;

// end hack to display http://


No comments: