开发者 | cvedovini |
---|---|
更新时间 | 2019年2月17日 12:57 |
捐献地址: | 去捐款 |
PHP版本: | 5.2 及以上 |
WordPress版本: | 5.0 |
版权: | GPLv3 |
版权网址: | 版权信息 |
[li_recommendations width="480" length="200" interval="1000"]
displays a rotating scroller with the recommendations you received. Only available if LinkedIn granted you access to your full profile.[li_profile]
displays your LinkedIn profile. Optional attributes are fields
and lang
to overide the general settings. Only basic profile is available unless LinkedIn granted you access to your full profile.[li_card]
displays a simple LinkedIn card. Optional attributes are picture_width
and summary_length
, and fields
and lang
to overide the general settings.[li_picture]
displays the original profile picture (size may vary depending on what you uploaded to LinkedIn). Optional attributes are width
, height
and class
.[li_profile_field]
outputs one field from the profile. This shortcode uses the "field" attribute to indicate the path to the target field. For example [li_profile_field field="first-name"]
will output the profile's first name and [li_profile_field field="location:name"]
will output the name of the profile's location.linkedin
folder in your theme or in the wp-content
folder and then copy the template file you want to modify. The default template files are located in the plugin's templates
folder.
You can override the [li_profile]
shortcode's template by specifying the template code enclosed in the shortcode itself, for example [li_profile]Hello M. {last-name}, how's your work at {positions:values:0:company:name}?[/li_profile]
will render something like Hello M. Smith, how's your work at ACME Company?
.
See this post for more details on customization: Showing more of your LinkedIn profile with WP LinkedIn
There are also several widgets. One widget displays the recommendations scroller, one displays your network updates, and two widgets show a "profile card" - one of which is the standard LinkedIn JavaScript profile widget, the other uses a customizable template.
We welcome volunteers to translate that plugin into more languages. If you wish to help then contact @cvedovini on Twitter or use that contact form.
Please check the WP LinkedIn Multi-Users extension if you need to show the profiles of multiple users.
And if you need to show company profiles or company updates, please check the WP LinkedIn for Companies extension.
Also available is the WP LinkedIn Advanced Templates extension that provides extended profile templates (including most of the profile sections) and a more sophisticated template for company page updates.
And if you want to save money then there's the WP LinkedIn Extensions Bundle which includes all the extensions for a reduced price.
wp-linkedin
folder to the /wp-content/plugins/
directoryProfile fields
field is the list of fields that will be available to the profile template for rendering - see this post for more details on customization: Showing more of your LinkedIn profile with WP LinkedInUncheck the “full profile” checkbox in the options then try again. Since May 12, 2015, you need to be a LinkedIn partner and be granted full access to your profile to see more than the basic profile fields. See this article for more information
Since May 12, 2015, you need to be a LinkedIn partner and be granted full access to your profile to see more than the basic profile fields. See this article for more information
Since May 12, 2015, the recommendations are only accessible if you have full access to your profile. See this article for more information
Since May 12, 2015 the LinkedIn API doesn't allow access to profile updates anymore. The shortcode and widget are not functional anymore. See this article for more information
No, it doesn't. But there is a premiun extension, WP LinkedIn Multi-Users that changes the behavior of this plugin so that shortcodes and widgets show the data of the author of the post or page.
No, it doesn't. But there is a premiun extension, WP LinkedIn for Companies that provides shortcodes and widgets for company profiles and company updates.
The volunteer experiences section is in the templates provided by the premium extension WP LinkedIn Advanced Templates but is not activated by default. To activate it you must add the relevant profile fields to the list of fields, the minimum is volunteer
. To get the full data use this:
volunteer:(volunteer-experiences:(organization,cause,role,start-date, end-date,description))
You also need to be granted access to your full profile to get data not in the basic profile. See this article for more information
The projects section is in the templates provided by the premium extension WP LinkedIn Advanced Templates but is not activated by default. To activate it you must add the relevant profile fields to the list of fields:
projects:(name,url,start-date,end-date,members:(name, person:(public-profile-url,first-name,last-name,picture-url,headline)), description)
You also need to be granted access to your full profile to get data not in the basic profile. See this article for more information
The publications section is in the templates provided by the premium extension WP LinkedIn Advanced Templates but is not activated by default. To activate it you must add the relevant profile fields to the list of fields:
publications:(title,publisher,authors,date,url,summary)
You also need to be granted access to your full profile to get data not in the basic profile. See this article for more information
The honors & awards section is in the templates provided by the premium extension WP LinkedIn Advanced Templates but is not activated by default. To activate it you must add the relevant profile fields to the list of fields:
honors-awards:(name,issuer,date,description)
You also need to be granted access to your full profile to get data not in the basic profile. See this article for more information
For other sections see Showing more of your LinkedIn profile with WP LinkedIn. You also need to be granted access to your full profile to get data not in the basic profile. See this article for more information
It's usually due to an incompatibility between the different javascript components used. To solve the incompatibility it's better to choose one of the component and use only this one. To change the component that is used by the recommendations' scroller you will need to customize the recommendations.php
template.
There can be several reasons to that problem, check the following:
Verify SSL peer
option on the plugin's settings page.Since v1.6 the call to add the javascript for the recommendations slider to the page as been moved to the recommendations.php
template. If you customized that template you must add the following line to the top of your custom template: wp_enqueue_script('responsive-scrollable');
You can either add picture-urls::(original)
to the list of fields and output that field in a customized template or use the [li_picture]
shortcode.
[li_profile]
shortcode[li_profile_field]
shortcodewp_linkedin_picture("width=80&height=80");
or wp_linkedin_picture(array('width' => 80, 'height' => 80));
<br/>
tags introduced in the middle of HTML <img>
tags containing line breaksesc_url
in the templates.linkedin
folder under the wp-content
folder instead of your theme's folder. No need to create a child theme anymore or have the templates overwritten when you update your theme.honors-awards:(name,issuer,date,description)
LI_DEBUG
variable. Set that define to true
in the wp-config.php
file and debug information will be printed by the plugin as HTML comments (especially usefull when debugging customized templates).li_picture
shortcode that enables you to print the original profile picture.publications:(title,publisher,authors,date,url,summary)
.projects:(name,url,start-date,end-date,members:(name,person:(public-profile-url, first-name,last-name,picture-url,headline)),description)
.Network Updates
template that was messing up the update text.esc_url
in templates when printing links.nl2br
instead of wpautop
when printing recommendations text.languages:(language,proficiency)
in the list of fields to activate it.jquery.dimensions.etc
plugin.wpautop
instead of nl2br
in templates.WP_DEBUG
set to true
to see what template file is used. The file path will be printed inside an HTML comment just before the template output.WP_DEBUG
set to true
otherwise they are printed as HTML comments.linkedin_oauthtoken
to enable extensions to override the LinkedIn API oauth token.linkedin_template
to enable extensions to override the template to be used.auto
.wp_enqueue_script
to templates for more flexibility.WP_DEBUG
is turned on (allows for having a dev environment without the access token being invalidated each time you switch).WP_LINKEDIN_APPKEY
and WP_LINKEDIN_APPSECRET
in wp-config.php
.readme.txt
file to move some details from the "Installation" page to the "Description" page.pre-wrap
in the stylesheet to using nl2br
in templates in order to better preserve the text formatting.$(document).ready()
.clear: none
on recommendations blockquote
otherwise the scroller might not work.recommendations-recieved
field to recommendations-received:(recommendation-text,recommender:(first-name,last-name,public-profile-url))
.[li_profile]
shortcode.field
attribute to the [li_profile]
shortcode to override the list from the settings and enable having several different profiles.interval
attribute to the shortcode and the widget to control the scroller's speed.