• Resolved Jamie Gill

    (@patchgill)


    Hi,

    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 1 replies (of 1 total)
  • Thread Starter Jamie Gill

    (@patchgill)

    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.

    Hope this helps others
    Cheers
    J

Viewing 1 replies (of 1 total)
  • The topic ‘WP LinkedIn, Profile image’ is closed to new replies.