Support » Plugin: WP LinkedIn » Recommendations Image

  • Resolved Jamie Gill



    Great plugin Ive used this plugin for 2 years now and haveand issue after an upgrade. I edited the reccomendation.php file with :-

    <img class=”picture” src=”<?php echo $recommendation->recommender->pictureUrl; ?>” />

    which used the pull in the image fine, I notice the api has changed a little and used the following :-

    <img class=”picture” src=”<?php echo $recommendation->recommender->picture-url; ?>” />

    Is there any reason why this isnt pulling the persons profile image in anymore?

    Thanks again for the plugin great work!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Claude Vedovini


    the API didn’t change and picture-url is not a valid PHP identifier so you probably have a PHP error at this point

    Thanks for your reply Claude.

    Is there any reason why $recommendation->recommender->pictureUrl; would have stopped then? There doesnt seem to be a PHP error it is pulling all the other details in fine on the site just not the image.

    Many thanks

    Plugin Author Claude Vedovini


    it never pulls any image or is it just for some profiles? some profiles don’t have public pictures available

    Hi Claude,

    I used a support post as suggested by inserting code in the wp-config to pull in the ‘picture-url’ field from linkedin :-

    define('LINKEDIN_FIELDS_RECOMMENDATIONS', 'recommendations-received:(recommendation-text, recommender:(first-name, last-name, public-profile-url, headline, picture-url))');

    then placed this in recommendations.php file :-

    <img class="picture" src="<?php echo $recommendation->recommender->pictureUrl; ?>" />

    And its pulling in the recommenders profile image fine. Thanks for the help.

    Hope this helps others

    Plugin Author Claude Vedovini


    good 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Recommendations Image’ is closed to new replies.