Need help with $output = preg_match_all
-
Hi folks
I’m trying add Open graph tags to my photography site, I have tried various plugins but haven’t got the image to show up in facebook, I believe because Im calling the fullsize image.
I have tried the code hack from joost which almost works but again picks the image, I have a thumbnail image but just need help with this preg_match_all.
Basically I need to get an extra “-150×150” at the end of the file name before the extension (www.example.com/imagename-150×150.jpg) but tried a million different things and cant figure it out.
Here is the code[Code moderated as per the Forum Rules. Please use the pastebin]
Example looking at the facebook debugger https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.fckdigital.com%2Ffairground-carousel%2F
Current image output is
https://www.fckdigital.com/uploads/2012/01/fairground_carousel.jpg
which needs to be
https://www.fckdigital.com/uploads/2012/01/fairground_carousel-150×150.jpgAny help or alternative solutions would be greatly appreciated.
Thanks
Cliff
- The topic ‘Need help with $output = preg_match_all’ is closed to new replies.