Home Blog Create A LinkedIn Company Follow Button With WordPress Shortcode

Create A LinkedIn Company Follow Button With WordPress Shortcode


This article will show you how to include a LinkedIn Company Follow Button in your WordPress website or PHP application. While the cut-and-paste code provided on the LinkedIn page is more than adequate, usage of shortcode permits you to globally alter all occurrences of the button if the need presents itself. The shortcode provides minimal styling options to ensure it’s easily aligned as required on your page.

At the time of writing the LinkedIn plugin as provided by LinkedIn is poorly maintained and doesn’t work nearly as well as advertised. In fact, all their plugins don’t work very well at all.

Use the LinkedIn button with caution.

The Result

The result of using just [linkedinfollow] returns a follow button centered on the page and wrapped in paragraph tags. Feel free to follow us 🙂

The shortcode of [linkedinfollow align="right" type="right"] will align the button to the right (type="right" adds the count horizontally). To align the button to the left we would use [linkedinfollow align="left"]. When aligning the button left or right we apply a default padding. In both cases the default language of English will be applied, and we’ll use a button that does not include a count; additional buttons are available as described below.

WordPress Shortcode

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.

Shortcode Attributes

The following shortcode attributes apply.


This is the ID of your company page. If you’re unfamiliar with the ID there are a number of ways in which to retrieve it. The easiest way is navigate to ‘Me‘ (from your company page) and scroll down to ‘Manage -> Company: YourCompany‘.


the type relates to the type of button. Options are no count (leave empty), top (a vertical button with a count), and right (a horizontal button with a count). Note that ‘right’ relates to the position of the data-countnot the actual button. We display the plain button without a count by default.


The button language defaults to en_US. If your country is supported, use the appropriate country code.


By default we’ll center the button in paragraph tags. To align right of left use align="right" or align="left".


Padding around the button defaults to 8px 15px 5px 15px (top, right, bottom, left). Alter as required.


  • If you choose not to use shortcode, generate your button here .
  • A number of other plugins are available. It’s likely we’ll build them all on a single page soon.
  • By using the LinkedIn plugins you agree to their terms of use .


Title: Create A LinkedIn Company Follow Button
Description: Create A LinkedIn Company Follow Button With WordPress Shortcode Or PHP.
Download: Shortcode (V0.1) | | Plugin Page

Shortt URL for this post: http://shor.tt/17F0


Please enter your comment!
Please enter your name here