Use the ProFeedWP shortcode

ProFeedWP works as a native WordPress block, but you can also display your LinkedIn feed with a shortcode.

This is useful if you are using the Classic Editor, Elementor, Divi, Avada, widgets, theme templates, or another page builder where adding a Gutenberg block is not convenient.

Basic Shortcode

Add this shortcode where you want the feed to appear:

[profeedwp company_url="https://www.linkedin.com/company/your-company/"]Code language: PHP (php)

Replace the LinkedIn URL with your public Company or Showcase Page URL. LinkedIn School Pages are not supported yet.

Where Can I Use It?

You can place the shortcode in:

  • The Classic Editor
  • Elementor Shortcode widget
  • Divi Code or Text module
  • Avada Text, Code, or Shortcode elements
  • WordPress widgets
  • Custom theme templates using do_shortcode()
  • Other page builders that support shortcodes

The shortcode works independently of Gutenberg, so the block editor does not need to be enabled.

Common Examples

Show a simple Feed

[profeedwp company_url="https://www.linkedin.com/company/your-company/"]Code language: JSON / JSON with Comments (json)

Show 3 posts in 3 columns

[profeedwp company_url="https://www.linkedin.com/company/your-company/" posts="3" columns="3"]Code language: JSON / JSON with Comments (json)

For responsive columns, columns_sm applies below 768px, columns from 768px to 1023px, and columns_lg from 1024px. For two columns on tablet and desktop, use columns="2" columns_lg="2".

Use the Minimal Theme

[profeedwp company_url="https://www.linkedin.com/company/your-company/" posts="3" theme="minimal" columns="3"]Code language: JSON / JSON with Comments (json)

Hide Images

[profeedwp company_url="https://www.linkedin.com/company/your-company/" images="false"]Code language: JSON / JSON with Comments (json)

Hide Dates

[profeedwp company_url="https://www.linkedin.com/company/your-company/" date="false"]Code language: JSON / JSON with Comments (json)

Show Only Posts With Images (Pro)

[profeedwp company_url="https://www.linkedin.com/company/your-company/" only_images="true"]Code language: JSON / JSON with Comments (json)

Advanced Examples

Carousel layout, engagement counts and custom styling require Pro. List layout itself is available in Free.

Carousel Layout

[profeedwp company_url="https://www.linkedin.com/company/your-company/" posts="9" layout="carousel" theme="social" columns="3"]Code language: JSON / JSON with Comments (json)

List Layout With Engagement Counts

[profeedwp company_url="https://www.linkedin.com/company/your-company/" posts="6" layout="list" list_media_left="true" show_like_count="true" show_comment_count="true"]Code language: JSON / JSON with Comments (json)

Custom Styling

[profeedwp company_url="https://www.linkedin.com/company/your-company/" posts="6" theme="modern" columns="3" card_background_color="#ffffff" text_color="#111827" border_radius="12" grid_gap="24" image_aspect_ratio="16/9"]Code language: JSON / JSON with Comments (json)

Refreshing the Feed

The shortcode uses the same feed cache as the block.

Free checks for fresh posts about every 12 hours. Pro checks hourly by default; use refresh_interval to change the frontend check interval in seconds (minimum 300). This controls checks for fresh data, not the lifetime of the shared feed cache. A shorter interval does not guarantee new LinkedIn posts immediately:

[profeedwp company_url="https://www.linkedin.com/company/your-company/" refresh_interval="3600"]Code language: JSON / JSON with Comments (json)

Shortcode Options

Options marked Pro only require the Pro plugin. Aliases are alternative names for the same setting. Use one name per setting; if both are supplied, the main option shown in the table takes precedence, except likes and comments, which take precedence over show_like_count and show_comment_count.

Option and aliasesExampleDescription and default
company_url
Aliases: company, url
company_url="https://www.linkedin.com/company/ibm/"Required. Public LinkedIn Company or Showcase Page URL. No default. School Pages are not supported.
posts
Aliases: posts_to_show
posts="6"Number of posts to show: 1–6 in Free, 1–99 in Pro. Default: 6.
layoutlayout="grid"Free: grid, list. Pro also supports carousel and masonry. Default: grid.
themetheme="minimal"Free: default, minimal, barebone, social. Pro also supports dark, corporate, vibrant, gallery, modern, linkedin. Default: default.
columnscolumns="2"Columns from 768px to 1023px wide. Range: 1–6. Default: 3. Applies to grid, masonry and carousel layouts.
columns_smcolumns_sm="1"Columns below 768px wide. Range: 1–3. Default: 1. Applies to grid, masonry and carousel layouts.
columns_lgcolumns_lg="3"Columns at 1024px and wider. Range: 1–6. Default: 3. Set separately from columns. Applies to grid, masonry and carousel layouts.
images
Aliases: show_images
images="false"Show or hide post images. Default: true.
date
Aliases: show_date
date="false"Show or hide post dates. Default: true.
text
Aliases: show_text
text="false"Show or hide post text. Default: true.
only_images
Aliases: show_only_with_images
only_images="true"Pro only. Include only posts with media. Default: false.
text_truncation_typetext_truncation_type="characters"Shorten post text by words or characters. Default: words.
text_limit
Aliases: text_truncation_limit
text_limit="40"Text limit for posts with media, measured using text_truncation_type. Minimum: 1. Default: 30.
text_limit_no_image
Aliases: text_truncation_limit_no_image
text_limit_no_image="100"Text limit for posts without media, measured using text_truncation_type. Minimum: 1. Default: 80.
refresh_intervalrefresh_interval="3600"Pro only. Frontend freshness-check interval in seconds; minimum 300, default 3600. Free uses 43200 (12 hours). This does not override the feed cache lifetime.
show_like_count
Aliases: likes
show_like_count="true"Pro only. Show like counts when supplied by the feed. Default: false.
show_comment_count
Aliases: comments
show_comment_count="true"Pro only. Show comment counts when supplied by the feed. Default: false.
carousel_show_scrollbarcarousel_show_scrollbar="false"Show the feed carousel scrollbar. Default: true. Requires layout=”carousel” (Pro).
carousel_draggablecarousel_draggable="false"Enable dragging/swiping the feed carousel. Default: true. Requires layout=”carousel” (Pro).
carousel_hide_overflowcarousel_hide_overflow="false"Hide overflowing feed carousel slides. Default: true. Requires layout=”carousel” (Pro).
list_media_leftlist_media_left="true"Place media beside the text in list layout on screens at least 768px wide. Default: false. Cards stack on smaller screens.
list_media_left_coverlist_media_left_cover="true"Make media fill the left side of list cards. Requires layout=”list” and list_media_left=”true”. Default: false.
card_background_color
Aliases: custom_card_background_color
card_background_color="#ffffff"Pro only. Card background as a CSS color. Default: theme styling.
card_background_gradient
Aliases: custom_card_background_gradient
card_background_gradient="linear-gradient(135deg, #ffffff, #e5e7eb)"Pro only. CSS background gradient. Overrides card_background_color when both are set. Default: theme styling.
text_color
Aliases: custom_text_color
text_color="#111827"Pro only. Card text as a CSS color. Default: theme styling.
hover_background_color
Aliases: custom_hover_background_color
hover_background_color="#f3f4f6"Pro only. Card background color on hover. Default: theme styling.
hover_text_color
Aliases: custom_hover_text_color
hover_text_color="#111827"Pro only. Card text color on hover. Default: theme styling.
border_radius
Aliases: custom_border_radius
border_radius="12"Pro only. Card and image corner radius in pixels; minimum 0. Default: theme styling.
font_size
Aliases: custom_font_size
font_size="16"Pro only. Base font size in pixels; minimum 1. Default: theme styling.
font_size_slugfont_size_slug="medium"Pro only. Stores a WordPress font-size preset slug as data. It does not apply a font size by itself; use font_size to set the size. Default: empty.
image_aspect_ratioimage_aspect_ratio="16/9"Image shape: auto, 1 (square), 4/3, 16/9, 3/2, 2/1. Default: 3/2. auto omits the shortcode aspect-ratio override.
grid_gapgrid_gap="24"Pro only. Space between cards in pixels. Accepted range: 0–60; default: 20. Currently, 0 falls back to 20 when the frontend initializes; use 1–60 for a custom gap.
alignalign="wide"Adds the WordPress alignment class for wide or full. Requires support from the surrounding theme/layout. Default: empty.
class
Aliases: class_name
class="my-linkedin-feed"Adds one custom CSS class to the feed wrapper. Default: empty.
All supported shortcode settings. Scroll horizontally on smaller screens to read every column.

Boolean options accept true, 1, yes or on to enable, and false, 0, no or off to disable. Omit an option to use its default.

Using the shortcode in a theme template

If you want to add the feed directly inside a WordPress theme template, you can use:

<?php echo do_shortcode('[profeedwp company_url="https://www.linkedin.com/company/your-company/"]'); ?>Code language: HTML, XML (xml)

Only add this to theme files if you are comfortable editing WordPress templates.

Troubleshooting

Why does the shortcode appear as plain text?

This usually means the shortcode was added to an area that does not support WordPress shortcodes.
Use a Shortcode block, Elementor Shortcode widget, Divi Text/Code module, or another field that supports shortcodes.

Why does no feed appear?

Check that company_url is a valid LinkedIn company page URL.

Also make sure ProFeedWP is installed and activated.

Why are Pro options not applied?

Some shortcode options require ProFeedWP Pro.

If you use Pro-only options on a Free site, those options may be ignored or replaced with the closest supported Free setting.

Make sure ProFeedWP Pro is installed and your license is active.

Why does the feed not update immediately?

ProFeedWP uses caching for better performance.

New LinkedIn posts may not appear immediately. The feed updates when the cache expires, or when you use manual refresh in ProFeedWP Pro.

Get Started Today!

Your LinkedIn feed. Your design. Your WordPress site.