Social · n8n

Auto-Share New WordPress Posts to Your LinkedIn Company Page

Every time you publish a new post on WordPress, this workflow automatically shares it to your LinkedIn Company Page with the post title and link. No more manual copy-pasting — your content reaches LinkedIn the moment it goes live.

difficulty Beginnersetup 30 minresult A fully automated pipeline that detects new WordPress posts via RSS and instantly publishes them as updates on your LinkedIn Company Page.
  1. 1

    Trigger: Poll your WordPress RSS feed

    Add an RSS Feed Trigger node. Set the Feed URL field to your WordPress RSS feed, typically https://yourdomain.com/feed. Set Poll Times to every 15 minutes. This node fires whenever a new post appears in the feed.

  2. 2

    Extract the post details you need

    Add a Set node connected to the RSS trigger. Create two fields: postTitle mapped to {{ $json.title }} and postLink mapped to {{ $json.link }}. This cleans up the data before sending it to LinkedIn.

  3. 3

    Post to LinkedIn Company Page

    Add an HTTP Request node connected to the Set node. Set Method to POST and URL to https://api.linkedin.com/v2/ugcPosts. Under Authentication choose Header Auth and add a header Authorization with value Bearer YOUR_LINKEDIN_ACCESS_TOKEN. Set Body Content Type to JSON and paste the body: { "author": "urn:li:organization:YOUR_ORG_ID", "lifecycleState": "PUBLISHED", "specificContent": { "com.linkedin.ugc.ShareContent": { "shareCommentary": { "text": "New post: {{ $json.postTitle }} {{ $json.postLink }}" }, "shareMediaCategory": "NONE" } }, "visibility": { "com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC" } }. Replace YOUR_ORG_ID with your LinkedIn Company numeric ID and YOUR_LINKEDIN_ACCESS_TOKEN with a valid token from the LinkedIn Developer portal.

Frequently asked questions

How do I find my LinkedIn Company Page Organization ID?

Log into LinkedIn, go to your Company Page, then click Admin tools > Edit page. Look at the URL — it will contain a number like `/company/12345678/`. That number is your Organization ID to use in `urn:li:organization:12345678`.

How do I get a LinkedIn Access Token?

Go to https://www.linkedin.com/developers, create an app, request the `w_member_social` and `r_organization_social` permissions, then use the OAuth 2.0 flow to generate an access token. Tokens expire, so consider using n8n's built-in LinkedIn OAuth2 credential if available in your version.

Will this post old WordPress articles that already exist?

No. The RSS Feed Trigger node only fires for items that appear after the workflow is activated. Existing posts that were already in the feed when you first turn it on will not be reposted.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.