The right way to add LinkedIn to WordPress depends on what you want visitors or your editorial workflow to do. Use LinkedIn’s Share plugin for a share button, LinkedIn’s Embed this post command for one public post, an ordinary WordPress link or button for a profile or company page, and Jetpack Social on WordPress.com when every new post should be published automatically. Self-hosted WordPress sites can use a maintained third-party autoposter, but permissions, privacy handling, and compatibility must be checked before installation.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
Choose the LinkedIn feature that matches your goal
These are four different integrations. A share button does not display your LinkedIn feed, and an embedded post does not automatically update when you publish a new WordPress article. Decide the destination and update behavior first.
As an Amazon Associate I earn from qualifying purchases.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →| Goal | Recommended method | What visitors or editors get | Main requirement |
|---|---|---|---|
| Let readers share the current page | LinkedIn Share plugin | A Share button tied to a page URL | Custom HTML, a script-enabled widget, or a theme/template hook |
| Show one LinkedIn post inside an article | LinkedIn’s Embed this post command | A live-looking embed of one public post | The source post must remain Public and available |
| Send people to a profile or company page | WordPress text, image, or Button block | A normal, accessible link | The destination URL copied from LinkedIn |
| Publish every new WordPress.com post to LinkedIn | Jetpack Social | Automatic distribution to a profile or page | A connected LinkedIn account and approved authorization |
| Automate on self-hosted WordPress or create a broader workflow | A maintained third-party publishing plugin or service | Configurable or queued publishing | Current API permissions, plugin compatibility, and privacy review |
Add LinkedIn’s official Share button
LinkedIn’s Share plugin creates a button that shares a specified URL. It is useful when the call to action should be “share this article,” rather than “follow our account” or “show our latest posts.”
Install it in the WordPress editor
- Open the post or page where the button should appear.
- Insert a Custom HTML block. A widget area that accepts scripts can also work, depending on the theme and WordPress configuration.
- Paste this snippet:
<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>
- Replace the example value in
data-urlwith the URL readers should share. - Preview the page while logged in as an administrator, then check the published URL in a separate browser or private window.
For a single evergreen landing page, a fixed URL is acceptable. For a reusable post template, a hard-coded address is the wrong choice because every article would share the same page. Output the current WordPress permalink instead.
Use the current permalink in a theme or template
A PHP template can generate the button for whichever post is being viewed. Escape the URL for an HTML attribute and test the rendered result before publishing:
<?php $share_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_url( $share_url ); ?>"></script>
Place this in the appropriate single-post or page template, a carefully selected hook, or a site feature that permits this markup. Do not paste PHP into a WordPress Custom HTML block; that block outputs HTML and cannot safely execute PHP.
Check the common rendering dependencies
- The external LinkedIn script must be allowed to load. A security policy, script optimizer, or cookie-consent tool can prevent it from running.
- Page caching can serve an old version of the markup. Purge the relevant cache after changing the URL or template.
- Some editors strip script tags or sanitize them for users without the required capability. If the snippet disappears after saving, use a trusted theme hook or a script-permitted widget instead of repeatedly pasting it.
- Keep a normal text link as a fallback when the button is important for accessibility or when visitors may block third-party scripts.
Embed one public LinkedIn post
An embed is the appropriate choice when an article needs to show a specific announcement, video, document post, or other LinkedIn item. It is not a substitute for a continuously updated feed.
Copy the embed code from LinkedIn
- On LinkedIn’s desktop site, open the post.
- Open More and choose Embed this post.
- Select Embed with less text, Embed full post, or the video-only option when LinkedIn offers it.
- Choose Copy code.
- In WordPress, add a Custom HTML block, paste the complete code, save, and preview the page.
Copying the code from the individual post matters. Do not try to reconstruct an embed from a share URL, because LinkedIn supplies the markup and script configuration for that post.
Rank #2
Know what LinkedIn permits
Only content shared as Public can be embedded. LinkedIn documents embeds for public text posts, articles, images, videos, live videos, and document posts. Multi-photo posts and reposts with commentary are not available for embedding. If the author deletes the original post, the embed is deleted as well; WordPress cannot preserve content that LinkedIn has removed.
Visibility can also change after you have pasted the code. A post that was public when embedded may no longer render if its author changes the audience or if the source account removes it. Treat an embed as a live dependency, not as an archival copy.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePlace the embed where it helps the reader
- Introduce why the post is relevant instead of dropping an unexplained social card between paragraphs.
- Keep a short text description or transcript for important information, particularly for video or image-heavy posts.
- Preview on a narrow screen. A social embed can be wider or taller than the editor preview suggests.
- Check the live page after publishing, because optimization and consent settings often behave differently on the front end.
Add a LinkedIn profile or company-page link
If the real objective is to get visitors to follow, contact, or view an account, a normal link is the most dependable integration. It does not require LinkedIn’s embed script and remains understandable if JavaScript is disabled.
Create the link with WordPress blocks
- Copy the profile or company-page address from LinkedIn.
- In the WordPress editor, add a Button, Paragraph, or Image block.
- Select the link control, paste the destination, and apply a descriptive label such as Follow our company on LinkedIn or View the author’s LinkedIn profile.
- Open the link settings and choose whether it should open in a new tab. If you do, make the destination clear in the link text; do not rely on an unlabeled icon.
- Save, publish, and test the destination while logged out.
Use the actual destination copied from LinkedIn rather than a guessed username URL. Profiles can change their public address, and company pages may have different public slugs from their display names.
Rank #3
LinkedIn’s profile custom button
LinkedIn also offers a profile custom-button feature with choices such as “Visit my website,” “View my blog,” and “View my portfolio.” LinkedIn says this feature is limited to a select group of Premium Business, Sales Navigator, and Recruiter Lite subscribers. It is therefore not a dependable WordPress-wide solution: eligibility is controlled by LinkedIn, and the button is configured on the LinkedIn profile rather than in your site’s editor.
Automatically publish WordPress.com posts to LinkedIn
WordPress.com provides a documented connection through Jetpack Social. This is the simplest route when the requirement is “publish each new WordPress post to LinkedIn,” rather than manually adding a share button to every article.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Connect the account
- In the WordPress.com dashboard, go to Jetpack → Social.
- Click Add account.
- Choose LinkedIn.
- Sign in to LinkedIn and approve the requested connection.
- Choose whether the connection should publish to the LinkedIn profile or page available to that authorization.
- Publish a controlled test post and confirm the resulting LinkedIn publication before relying on the connection for a launch or campaign.
This workflow is for new WordPress.com posts. It does not turn an existing archive into a LinkedIn feed, and it does not embed LinkedIn content back into WordPress. The available menu labels and account permissions can change, so check the current Jetpack Social screen if the path differs.
Prevent unwanted automatic posts
- Decide whether every post qualifies. News, private announcements, scheduled posts, and corrections may need a manual workflow.
- Review the generated title, excerpt, featured image, and destination URL on LinkedIn after the first publication.
- Disconnect the account in Jetpack Social when the site changes ownership or the authorization should no longer be active.
- Tell editors that deleting a WordPress post does not necessarily retract a copy already published on LinkedIn.
Automate publishing on self-hosted WordPress
Self-hosted WordPress does not have the same built-in WordPress.com connection. WordPress.org lists third-party options, including WP LinkedIn Auto Publish and Devenia Autoposter. The former provides configuration and instant-share controls; the latter can queue eligible posts, supports a personal profile or company page subject to permissions, and uses LinkedIn’s official REST API.
Rank #4
Neither product should be described as a LinkedIn-owned plugin merely because it uses an official API. Before installing one, inspect its current WordPress.org listing, changelog, tested WordPress versions, support activity, required permissions, data handling, and uninstall behavior.
Evaluate a plugin before granting access
- Back up the site and test the plugin on a staging copy when possible.
- Confirm that it supports the LinkedIn destination you need: a personal profile, a company page, or both.
- Read the permission request and identify whether it can publish, read account information, or manage page content.
- Check whether it supports drafts, scheduled posts, categories, or an approval queue. “Automatic” should not mean that every post is sent without editorial control.
- Connect a test account or page with limited scope first.
- Publish one test item, inspect the text and image on LinkedIn, and verify that the WordPress post URL is correct.
- Document how to revoke access and disable the integration if the plugin becomes unmaintained or a token is compromised.
Why an API-based plugin can fail
LinkedIn permissions can differ between a personal profile and a company page. A plugin may appear connected yet lack the permission required for a particular destination. API changes, expired authorization, rate limits, an invalid image, or a post type excluded by the plugin settings can also stop publication. Look at the plugin’s logs and LinkedIn authorization screen before changing unrelated WordPress settings.
What to do when you want a LinkedIn feed
A single embed is not a native, full-feed block. It represents one public post and can disappear when that source is deleted or made non-public. If the requirement is a continuously updating stream, choose a maintained plugin or service that explicitly supports feed-like displays, and verify how it caches content, handles consent, and refreshes posts.
Do not promise readers that every LinkedIn post will appear. Post type restrictions, visibility, API permissions, and LinkedIn interface changes all affect what can be displayed. A manually curated set of links is often more stable than an unattended social feed, especially on a performance-sensitive page.
Best Value
Troubleshoot a missing button, blank embed, or failed post
The share button is absent
- View the page source or browser developer tools and confirm that the LinkedIn script and
IN/Shareelement survived WordPress sanitization. - Check for a content-security policy, script blocker, optimization plugin, or consent banner preventing the external script from loading.
- Clear page and CDN caches, then test the uncached page in a private window.
- Confirm that
data-urlcontains the intended canonical URL and that the URL is escaped correctly in a template.
The embedded post is blank
- Open the source post on LinkedIn and confirm that its audience is Public and that the post still exists.
- Check whether it is a multi-photo post or a repost with commentary, which LinkedIn does not offer for embedding.
- Delete the old markup from the WordPress Custom HTML block and copy fresh code using More → Embed this post.
- Temporarily test with JavaScript optimization and cookie-consent blocking disabled. Re-enable each control one at a time and add an appropriate allow rule if your policy permits LinkedIn content.
- Test the published page, not only the editor canvas.
Automatic publishing stopped
- Open Jetpack Social or the plugin’s connection screen and look for an expired or revoked authorization.
- Verify that the selected profile or company page is still available to the connected account.
- Check whether the post is excluded by category, status, schedule, or plugin rules.
- Review the plugin log and reconnect only after recording the current settings.
- If the integration has not been maintained, disable it and select a currently supported alternative rather than weakening WordPress security controls.
The post appears twice
Duplicate publication usually means two systems are connected to the same destination—for example, Jetpack Social and an autoposter plugin. Disable one path, then test with a new post. Avoid deleting and republishing repeatedly while diagnosing, because each attempt can create another LinkedIn copy.
Performance, privacy, and accessibility checks
LinkedIn buttons and embeds load third-party resources. They can add requests and can be affected by visitor consent choices. Explain the relevant third-party behavior in your privacy notice, and configure your consent tool so that blocked scripts fail gracefully rather than leaving an empty container.
- Use a descriptive text link alongside a social button when the action is important.
- Provide captions, transcripts, or a written summary for information conveyed only in an embedded video.
- Do not put the only copy of a critical announcement inside a LinkedIn embed; retain the essential facts in WordPress.
- Check keyboard focus, visible link text, contrast, and mobile layout after publishing.
- Measure the page with your normal performance tools before and after adding several embeds. A page with multiple social scripts may need fewer embeds or a curated link section.
A practical decision checklist
- Readers should share the current article: add the Share plugin and generate the current permalink in a template.
- You need to cite one LinkedIn announcement: copy its public embed code and keep a text explanation in the article.
- You want followers or applicants to find an account: add a clearly labeled profile or company-page Button block.
- Every new WordPress.com post should be distributed: connect LinkedIn under Jetpack → Social and test one publication.
- A self-hosted site needs queues, filters, or page publishing: assess a maintained third-party plugin, its permissions, and its support record before connecting it.
- You want a live feed: select a maintained feed-capable solution and accept that visibility, post types, consent, and source deletion can affect what visitors see.
Whichever method you choose, test the live page and the actual LinkedIn destination after publication. LinkedIn’s interface, eligibility rules, APIs, and WordPress.com menus can change, so record the integration owner and review it when the site, account, or plugin is updated.
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.




