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 own company page URL.

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)

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

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

Advanced Examples

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.

By default, the feed refreshes automatically when the cache expires (default is 3600s). You can set the refresh interval in seconds:

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

Shortcode Options

OptionExampleDescription
company_urlcompany_url="https://www.linkedin.com/company/your-company/"LinkedIn company page URL. Required.
postsposts="3"Number of posts to show. Max is 99.
layoutlayout="grid"Layout type. Supports grid, carousel, list, and masonry.
themetheme="minimal"Feed theme. Free supports default, minimal, and barebone.
columnscolumns="3"Number of grid columns.
imagesimages="false"Show or hide images.
datedate="false"Show or hide post dates.
texttext="false"Show or hide post text.
only_imagesonly_images="true"Only show posts that include images.
show_like_countshow_like_count="true"Show like counts.
show_comment_countshow_comment_count="true"Show comment counts.
refresh_intervalrefresh_interval="3600"How often the feed should check for fresh posts, in seconds.
border_radiusborder_radius="12"Card border radius in pixels.
grid_gapgrid_gap="24"Space between feed cards in pixels.
image_aspect_ratioimage_aspect_ratio="16/9"Image shape. Supports auto, 1, 4/3, 16/9, 3/2, and 2/1.

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.