SocialEmbed LinkedIn

Embed LinkedIn Post in Gutenberg

Step-by-step guide to embed LinkedIn post in Gutenberg using the Custom iFrame WordPress plugin. No API key needed. No coding required.

Overview

Custom iFrame lets you embed LinkedIn post in Gutenberg by extracting the post's embed URL and pasting it into the block. Display professional updates, articles, and insights from LinkedIn directly on your WordPress page without an API key.

Custom iFrame is a WordPress plugin by CoderzStudio that embeds 100+ external sources in Elementor and Gutenberg without writing any code.

Using Elementor instead? Follow the Embed LinkedIn Post in Elementor guide.

Requirements

Step 1: Get the LinkedIn Post Embed Link

Open the post on LinkedIn

Go to linkedin.com and open the post you want to embed.

Click Embed this post

Click the three-dot menu in the top right corner of the post. Click Embed this post. A popup appears with the embed code.

Extract the src URL

Copy the embed code. Paste it into a text editor. Copy only the URL inside the src="..." attribute of the <iframe> tag.

Only public LinkedIn posts can be embedded. Posts with restricted visibility cannot be embedded and will show blank.

Step 2: Install the Plugin and Add the Block

Install and activate the plugin

Go to your WordPress dashboard. Go to Plugins > Add New. Search for Custom iFrame by Coderz Studio, click Install Now, then click Activate.

WordPress Add New Plugin screen showing Custom iFrame by Coderz Studio in search results with Install Now button
WordPress Add New Plugin screen showing Custom iFrame by Coderz Studio in search results with Install Now button

Open your page in the block editor

Go to the page or post where you want the LinkedIn embed. Click Edit to open the Gutenberg block editor.

Add the Custom iFrame block

Click the Add Block button. Search for Custom iFrame. Click the block to add it to the page.

Step 3: Embed LinkedIn Post in Gutenberg

Paste the LinkedIn embed URL

Select the Custom iFrame block. In the right panel, paste the LinkedIn embed src URL into the Source URL field. The post appears inside the block in the editor.

Set the height

Set Height to fit the post. Values between 400px and 700px work well for most LinkedIn posts.

Click Update or Publish. Your LinkedIn post is now live on your WordPress site.

For all block settings, see the Set Up Custom iFrame in Gutenberg guide.

This guide showed you how to embed LinkedIn post in Gutenberg using the Custom iFrame plugin. From copying the embed code to extracting the src URL and publishing, the whole setup runs through the block editor without any code.

FAQ


Also Available For