WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

LinkedIn Share Button

Adds a LinkedIn share button to posts and pages, allowing your visitors to easily and quickly share your content with their LinkedIn network.

Can I display the button only on posts or pages that I choose?

Yes. If you uncheck all the options for displaying the button you can manually add the button on posts and pages by selecting "show the button" in the LinkedIn Button options when editing a post or page.

Can I add my own button rather than using one of the existing ones?

Yes! When you visit the 'Settings -> LinkedIn Button' screen, the plugin will look for an image named 'linkedin-button.png' or 'linkedin-button.gif' inside the 'images' directory of your current active theme. If it finds one, it'll show up and you can select it.

Can I style the button with CSS in my theme?

Yes. The buttons have a class name of 'linkedin_share_button' and if you're displaying the button using one of the automatic settings then it will be contained within a div with class name 'linkedin_share_container'.

Is there a template tag I can use in my theme to display the button?

Yes:

<?php do_action( 'linkedin_button' ); ?>

Or, if you wish, you can use the function directly:

<?php linkedin_button(); ?>

This function takes two optional parameters: a post ID (defaults to the current post ID) and a boolean to control whether or not to echo the button (defaults to true).

If you use either of these methods then the button will always display, irrespective of your settings on the 'Settings -> LinkedIn Button' screen.

Can I display the button on custom post types?

Yes. Your custom post type will need to add support for the 'linkedinbutton' feature:

function my_linkedin_button_support() {
add_post_type_support( 'put_your_post_type_here', 'linkedinbutton' );
}
add_action( 'init', 'my_linkedin_button_support' );

Requires: 2.9 or higher
Compatible up to: 3.4.2
Last Updated: 2012-6-15
Downloads: 22,561

Ratings

3 stars
3.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
50,2,1 100,1,1
100,2,2
0,1,0
100,1,1
100,1,1
100,1,1