WordPress.org

Ready to get started?Download WordPress

Forums

WP LinkedIn
[resolved] Language proficiencies (4 posts)

  1. lotfi.elhafi
    Member
    Posted 7 months ago #

    Hi,

    I am trying to add language proficiencies from my profile but it seems harder than I thought. I added languages:(language,proficiency:(name)) in the profile field list in the setting screen but nothing is displayed. Am I doing something wrong? Should I edit some php codes to get it working?

    Thanks for this plugin anyway, it's great!

    http://wordpress.org/plugins/wp-linkedin/

  2. Claude Vedovini
    Member
    Plugin Author

    Posted 7 months ago #

    yes, you must also customize the templates, see here for an example: http://vdvn.me/more-wp-linkedin

  3. lotfi.elhafi
    Member
    Posted 7 months ago #

    Thanks. For those interested, here is my code.

    Added in the settings:

    languages:(language,proficiency)

    Added to a copy of profile.php in a new linkedin folder inside my theme folder:

    <?php if (isset($profile->languages->values) && is_array($profile->languages->values)): ?>
    <div id="languages" class="section">
    <div class="heading"><?php _e('Languages', 'wp-linkedin'); ?></div>
    <ul>
    <?php foreach ($profile->languages->values as $v): ?>
    <li class="language"><?php echo $v->language->name; ?>: <?php echo $v->proficiency->name; ?></li>
    <?php endforeach; ?>
    </ul>
    </div>
    <?php endif;?>
  4. Claude Vedovini
    Member
    Plugin Author

    Posted 7 months ago #

    thanks for sharing :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.