your code should look like
<div class=”degree”><?php echo $v->authority->name; ?> | <?php echo $v->startDate->year; ?>
Use var_dump with $profile->certifications to check that the structure of the data is as you think. For example:
<textarea><?php var_dump($profile->certifications); ?></textarea>
Once you have confirmed that certifications values have a authority->name and startDate->year then you can remove that code
Thread Starter
bubag3
(@bubag3)
Im not a pro in PHP, i dont get what you mean.
Can you write a correct code to me, just to i copy and paste in mine code? 🙁
<?php if (isset($profile->certifications)): ?>
<div class=”section”>
<div class=”heading”><?php _e(‘Certifications’, ‘wp-linkedin’); ?></div>
<?php foreach ($profile->certifications->values as $v): ?>
<div class=”education”>
<div class=”school”><?php echo $v->name; ?></div>
<div class=”degree”><?php echo $v->authority->name; ?> | <?php echo $v->startDate->year; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
if the certifications don’t show up you must check that you added the “certification” field to the list of field in the option page for the plugin.
if still nothing shows up you can check what is it that the LinkedIn API returns by outputting $profile on the page. To do that put the following code on top of the template:
<textarea><?php var_dump($profile); ?></textarea>
if you still have issues, please provide the url to the page where you want your profile displayed and the url to your LinkedIn profile
Thread Starter
bubag3
(@bubag3)
Claude, thanks for your reply but I ave no success. Still not showing the Certification “authority name” and, other thing, Language Level not showing too.
Heres the link http://publicidade.tk/curriculo
ok, seems like what the API is returning is not complete, you have to provide more fields to the list of fields.
for languages you must replace languages by languages:(language,proficiency)
and for certifications replace certificationswith certifications:(name,authority,start-date) to get what you want. Add more field as needed.
You can see the list of fields here: http://developers.linkedin.com/documents/profile-fields
Thread Starter
bubag3
(@bubag3)
Oh man! GREAT job! I just say thank you to you, thats resolved!