Title: Recommendations Image
Last modified: August 21, 2016

---

# Recommendations Image

 *  Resolved [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/)
 * 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!
 * [https://wordpress.org/plugins/wp-linkedin/](https://wordpress.org/plugins/wp-linkedin/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574458)
 * the API didn’t change and `picture-url` is not a valid PHP identifier so you 
   probably have a PHP error at this point
 *  Thread Starter [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574483)
 * 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
    Jamie
 *  Plugin Author [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574499)
 * it never pulls any image or is it just for some profiles? some profiles don’t
   have public pictures available
 *  Thread Starter [Jamie Gill](https://wordpress.org/support/users/patchgill/)
 * (@patchgill)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574681)
 * 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
    Cheers J
 *  Plugin Author [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574719)
 * good 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Recommendations Image’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-linkedin_dddbdc.svg)
 * [WP LinkedIn](https://wordpress.org/plugins/wp-linkedin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-linkedin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-linkedin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-linkedin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-linkedin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-linkedin/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/recommendations-image/#post-4574719)
 * Status: resolved