WordPress.org

Ready to get started?Download WordPress

Forums

Need help with $output = preg_match_all (1 post)

  1. fckdigital
    Member
    Posted 2 years ago #

    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 “-150x150” at the end of the file name before the extension (www.example.com/imagename-150x150.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 http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.fckdigital.com%2Ffairground-carousel%2F
    Current image output is
    http://www.fckdigital.com/uploads/2012/01/fairground_carousel.jpg
    which needs to be
    http://www.fckdigital.com/uploads/2012/01/fairground_carousel-150x150.jpg

    Any help or alternative solutions would be greatly appreciated.
    Thanks
    Cliff

Topic Closed

This topic has been closed to new replies.

About this Topic