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

    (@cvedovini)

    You must add the certification field in the list of fields to be fetched (in the plugin settings) and then you must customize the template for the profile shortcode.

    To customize the rendering of the shortcodes 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.

    Just add a section with the certifications, see the LinkedIn documentation about this field, here: https://developers.linkedin.com/documents/profile-fields#certifications

    It should be straightforward ??
    Regards,
    C.

    Thread Starter Erwin Wildenburg

    (@erwinwildenburg)

    Ok my PHP is not very good… I only know the basics.
    This is how far I got, but for some reason the startDate and the authorityname won’t show up as I expected. Tried lots of variations before asking your help here…

    <?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"><strong><?php echo $v->name; ?></strong></div>
    	<div class="degree"><?php echo $v->authority->name; ?> | <?php echo $v->startDate->year; ?></div>
    </div>
    <?php endforeach; ?>
    </div>
    <?php endif; ?>

    Can you take a look at it?

    Plugin Author Claude Vedovini

    (@cvedovini)

    authority name and start date are complex structures, I suggest you use var_dump to see what’s inside and adapt your code

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Certifications’ is closed to new replies.