Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
The right way to add LinkedIn depends on what you want visitors to do: share the current page, visit a profile or company page, view one LinkedIn post, or receive every new WordPress post automatically. WordPress supports all four approaches, but each uses a different setup and has different visibility, permission and maintenance requirements.
Choose the LinkedIn integration that matches your goal
Start with the outcome rather than a plugin. A share button sends the page a visitor is reading to LinkedIn. A profile link or custom button sends people to your LinkedIn presence. An embed displays one existing LinkedIn post inside a WordPress page. Automatic publishing distributes future WordPress posts after you connect an account.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
| What you want | Best approach | Where it works | Main limitation |
|---|---|---|---|
| Let visitors share the current page | LinkedIn’s official Share button | WordPress.org or WordPress.com sites that allow the required HTML | Requires LinkedIn’s JavaScript to load |
| Send visitors to your LinkedIn presence | Normal text, image or button link | Any WordPress site | It is a link, not an embedded LinkedIn experience |
| Show one LinkedIn post | LinkedIn’s “Embed this post” code | Public LinkedIn posts in a Custom HTML block | Private, deleted, multi-photo and certain repost content cannot be embedded |
| Publish each new WordPress.com post automatically | Jetpack Social LinkedIn connection | WordPress.com | Requires account authorization and the WordPress.com connection flow |
| Automate publishing on a self-hosted site or build a feed-like display | A maintained third-party plugin or service | Usually WordPress.org installations | Permissions, API access, privacy behavior and compatibility vary |
Before you start
- Know whether you are using WordPress.com or a self-hosted WordPress.org installation. The Jetpack Social menu described below is a WordPress.com workflow; self-hosted sites generally need a plugin or custom integration for automatic publishing.
- Have the destination ready: a personal LinkedIn profile, a company page, or a specific public post.
- Confirm that your WordPress role permits editing Custom HTML blocks, widgets or theme files. If scripts are filtered from your account, an administrator may need to add the code.
- Keep a backup or use a staging site before editing a theme template. A malformed snippet can affect the page layout.
Add LinkedIn’s official Share button
The official Share Plugin creates a button that shares a URL. Put the snippet on the page you want visitors to share and replace the example URL with that page’s address.
Use a fixed URL in a Custom HTML block
- Edit the WordPress page or post where the button should appear.
- Insert a Custom HTML block at the desired location.
- Paste this code, replacing the value of
data-urlwith the URL to share:
<script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
<script type="IN/Share" data-url="https://www.linkedin.com"></script>
- Open the block preview and then preview the complete page. Publish only after the button appears in the expected position.
The https://platform.linkedin.com/in.js file loads LinkedIn’s button behavior, while data-url tells the button which page to share. The example uses https://www.linkedin.com; for a real article, use that article’s canonical URL instead.
Make the button share the current WordPress page
A hard-coded address is unsuitable when the same template is used for many posts. In a PHP template or a theme hook, generate the current permalink and escape it before output. A minimal pattern is:
<?php $share_url = esc_url( get_permalink() ); ?>
<script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
<script type="IN/Share" data-url="<?php echo esc_attr( $share_url ); ?>"></script>
Place template code only where PHP is supported, such as an appropriate theme or child-theme template hook. Do not paste PHP into the block editor’s Custom HTML block. After saving, inspect a published post while signed in as an administrator and verify that the rendered data-url is the post’s actual permalink, not a staging address or an empty value.
Free tools Windows power users keep installed
One-click scans. No signup required.
Where the Share button can go
- Inside content: use a Custom HTML block when you want the button beside a call to action or at the end of an article.
- Sidebar or footer: use a widget area that permits the script. The exact widget label depends on the active theme.
- Reusable template: add the dynamic version to the single-post template so every post receives its own URL.
Script optimization, caching and consent tools can change when or whether the button loads. Test a logged-out view of the live page, not only the editor preview.
Rank #2
Add a LinkedIn profile or company-page link
If your goal is to gain followers or let readers contact you, a normal WordPress link is the most dependable option. Add a Button, Paragraph, Image or Navigation block, enter the destination LinkedIn profile or company-page URL, and use descriptive link text such as “Follow our company on LinkedIn” or “View my LinkedIn profile.” A standard link does not depend on LinkedIn’s embed script and works anywhere WordPress allows links.
Use LinkedIn’s profile custom-button feature when eligible
LinkedIn also offers a profile custom-button feature with choices including “Visit my website,” “View my blog” and “View my portfolio.” LinkedIn limits this feature to a select group of Premium Business, Sales Navigator and Recruiter Lite subscribers. If the option is absent from your account, use a WordPress button linking to your profile instead; do not assume the feature is available to every LinkedIn member.
Embed one LinkedIn post in WordPress
Use LinkedIn’s own embed code when you want readers to see a particular post without leaving your site. The source post must be shared as Public. LinkedIn supports public text posts, articles, images, videos, live videos and document posts. It does not provide embedding for multi-photo posts or reposts with commentary.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #3
Copy the embed code from LinkedIn
- On LinkedIn desktop, open the post you want to display.
- Select More, then choose Embed this post.
- Choose Embed with less text or Embed full post. For eligible video content, LinkedIn may also offer a video-only option.
- Select Copy code.
Insert the code in WordPress
- Edit the WordPress page or post where the LinkedIn post should appear.
- Add a Custom HTML block at the insertion point.
- Paste the complete code copied from LinkedIn. Do not remove the script or data attributes that came with it.
- Use the block preview and the full page preview to check spacing, width and video behavior.
- Publish, then test the live page in a private browser window.
An embed is tied to the original LinkedIn post. If its author deletes the source content, the embedded version is deleted too. This makes an embed suitable for displaying an active post, not for preserving an archival copy.
Automatically publish WordPress.com posts to LinkedIn
WordPress.com documents an automatic connection through Jetpack Social. After it is configured, each new WordPress.com post can be published to a connected LinkedIn profile or page.
- Sign in to your WordPress.com dashboard.
- Open Jetpack → Social.
- Click Add account.
- Choose LinkedIn.
- Sign in to LinkedIn when prompted and approve the connection.
- Publish a new WordPress.com post and confirm that the connected destination receives it.
Check the selected destination before publishing: a personal profile and a company page are different targets and may require different permissions. Because dashboard labels and authorization screens can change, follow the labels shown in your account rather than an older screenshot.
Rank #4
Use a plugin for broader automation or feed-style displays
Self-hosted WordPress sites and sites needing scheduling, instant sharing or a display of multiple LinkedIn items may need a third-party plugin or service. WordPress.org lists plugins for LinkedIn publishing, including WP LinkedIn Auto Publish, which provides configuration and instant-share controls, and Devenia Autoposter, which can queue eligible posts and support a personal profile or company page subject to permissions. Devenia Autoposter uses LinkedIn’s official REST API, but that does not make the plugin an official LinkedIn product.
Evaluate a plugin before connecting LinkedIn
- Maintenance: check the plugin’s latest release, support activity and compatibility with your WordPress version.
- Permissions: read exactly what access it requests and whether a company-page connection needs an administrator role.
- Publishing rules: confirm which post types, categories, authors and statuses are eligible, and whether publication is immediate or queued.
- Privacy: review how the plugin stores access tokens, logs content and handles data when the connection is revoked.
- Failure handling: look for logs, retry controls and a way to prevent duplicate posts.
- Updates: recheck the integration after WordPress, LinkedIn or the plugin changes its API or authorization flow.
Install one integration at a time on a staging site when possible. Publishing through both Jetpack Social and a separate autoposter can create duplicate LinkedIn posts, so define one owner for automatic distribution.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Test the integration on the live site
Use a short acceptance checklist after every setup or theme change:
Best Value
- Open the published page while logged out and confirm that the button, link or embed is visible.
- For a Share button, activate it and verify that the shared destination is the correct page, not the site home page.
- For an embed, confirm that the source post is still visible and that the content loads at the intended width.
- For automatic publishing, publish a controlled test post and check the intended profile or page for one copy.
- Check a mobile viewport and a browser with cookie-consent controls enabled.
- Inspect the page after caches are purged. A cached version can hide a corrected URL or an updated script.
Troubleshoot a blank button, missing embed or failed post
The LinkedIn embed is blank
- Open the source post on LinkedIn and confirm it is still Public.
- Check that the author has not deleted the post.
- Return to the post’s More → Embed this post menu, copy the code again and replace the old Custom HTML block.
- Temporarily review caching and JavaScript-optimization settings. Delayed, combined or blocked scripts can prevent the embed from initializing.
- Check cookie-consent settings that may block third-party scripts until a visitor grants permission.
- Test the page with browser extensions disabled and on another browser to rule out local script blocking.
The Share button does not appear
- Confirm that the LinkedIn script URL and the
IN/Sharetype are unchanged. - Verify that the snippet is in a Custom HTML block, a script-capable widget area or a valid theme hook, rather than a text field that strips scripts.
- View the rendered page source or browser console for blocked-script errors.
- Temporarily exclude the page from JavaScript delay or minification, then retest after clearing the cache.
Automatic publishing sends nothing
- Recheck that the LinkedIn account is still connected and has not revoked authorization.
- Confirm that the post meets the plugin or Jetpack Social eligibility rules and that the intended profile or page was selected.
- Review the integration’s log or queue for permission errors, failed retries or duplicate-prevention rules.
- Update or replace an abandoned plugin rather than granting broader permissions to work around an unsupported integration.
The wrong URL is shared
For a fixed snippet, inspect data-url directly. For a template, verify that get_permalink() resolves to the canonical published URL and that escaping occurs at output. Remove staging domains, tracking-only redirects and accidental home-page values before publishing.
Choose the simplest option that will remain reliable
- Choose the official Share button when visitors need to share individual WordPress pages.
- Choose a normal profile or company-page link when your priority is follows, contact or credibility and you do not need LinkedIn content inside the page.
- Choose a LinkedIn embed for one public post that adds context to a specific article or landing page.
- Choose Jetpack Social on WordPress.com when every new post should be distributed through a connected LinkedIn profile or page.
- Choose a maintained third-party automation tool only when you need scheduling, queues, broader publishing rules or a multi-item display that the native options do not provide.
Whichever path you use, document who owns the LinkedIn authorization, test after WordPress or theme updates, and revisit the connection if LinkedIn changes its interface, eligibility rules or API permissions.
Recommended Free Tools
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

