Yes, you can customize the display for both shortcodes.
To do so you must create a linkedin
folder in your theme and then copy the template file you want to modify.
The default template files, recommendations.php
and profile.php
, are located in the plugin’s template
folder.
Hi There,
I wanted to check in regarding the recommendations received attribute. I installed the plugin and created credentials for Linkedin and went ahead and left the default field settings for the plugin. Everything appeared great except for the recommendations part. I received the following error:
Warning: Invalid argument supplied for foreach() in /home/projectv/public_html/website/wp-content/plugins/wp-linkedin/templates/profile.php on line 83
Additionally the shortcode [li_recommendations] did not appear to produce anything. The client I am using this plugin for only has 1 recommendation currently, so it may be that they need more than 1 recommendation to make these features work, but I thought I would try to see if you have run into this issue yet.
Cheers,
Jordan
Hi,
I suspect the linkedin API as a different output when there’s only one recommendation, Can you place the following code at line 83 of the /wp-content/plugins/wp-linkedin/templates/profile.php
file and copy/paste the content of the dump here?
<pre><?php var_dump($profile->recommendationsReceived); ?></pre>
Thanks,
C.