How to Add a Social Media Feed to WordPress

WordPress is one of the most popular website platforms, but it does not include a built-in way to display a live social media feed from Instagram, YouTube, TikTok, and other channels in one place. SocialMatix solves this by giving you a single embeddable feed you can add to any WordPress page or post using the Custom HTML block.

This guide walks through the full process: build your feed in SocialMatix, copy the embed snippet, and paste it into WordPress. No plugin or custom development required.

What you will need

Note for WordPress.com users: script-based embeds require a WordPress paid plan with hosting features activated. If your embed code is removed after saving, your plan or user role may not allow custom script tags.

Custom HTML vs Code block: which one to use

In the WordPress block editor, search for Custom HTML—not Code. They sound similar, but they do very different things.

Quick shortcut: type /html in the editor to insert a Custom HTML block. Do not use /code for this setup.

Why use the Custom HTML block?

WordPress also includes an Embed block for single URLs (for example one YouTube video), but a SocialMatix feed uses a script-based embed that loads and updates multiple posts automatically. The Custom HTML block is the recommended way to add this type of feed in modern WordPress.

Step 1: Create your feed in SocialMatix

  1. Sign up for free. Create your account at SocialMatix and add a new feed for your WordPress site.

  2. Add your social sources. Click "Add Source" and connect the accounts or hashtags you want to display. SocialMatix add source screen SocialMatix choose source screen

  3. Customize your layout. Adjust colors, spacing, and display style so the feed matches your WordPress theme. SocialMatix layout customization screen

  4. Set moderation rules. Decide which posts are approved automatically and which require manual review before they appear on your site.

Step 2: Copy your embed code

  1. Open your feed in SocialMatix and click Publish (top right).

  2. Copy the full embed snippet shown in the modal. It includes a container div and a script tag.

  3. Keep this code ready—you will paste it into WordPress in the next step.

Your embed snippet will look similar to this:

<div id="social-wall"></div>
<script src="https://..." async data-feed="YOUR_FEED_KEY" data-api-base="https://..."></script>

SocialMatix publish feed and embed code screen

Step 3: Add a Custom HTML block in WordPress

  1. Log in to WordPress and open the page or post where you want your social feed.

  2. Click Edit to open the block editor.

  3. Click the + block inserter (or type /html in a new block).

  4. WordPress block editor showing Custom HTML block selection
  5. Search for Custom HTML and add the block (the 'code' block will not work, it must be a Custom HTML block).

  6. Position the block where you want the feed to appear on the page.

Step 4: Paste your SocialMatix embed snippet

  1. Click into the Custom HTML block.

  2. Paste the full SocialMatix embed snippet into the HTML field.

  3. Make sure you paste both the <div id="social-wall"></div> container and the <script> tag.

  4. Use the block preview option to check rendering before publishing.

Step 5: Preview and publish

  1. Click Preview to confirm the feed appears on desktop and mobile.

  2. Click Update or Publish to save your page or post.

  3. Open the live URL and verify the feed loads on the published site.

  4. Return to SocialMatix anytime to update layout, moderation, or sources—your WordPress embed will reflect those changes without re-pasting code.

Where to place your social feed in WordPress

Tips for a clean WordPress integration

Troubleshooting

I added a Code block but the feed does not show

Replace the Code block with a Custom HTML block. The Code block only displays code as text and will not run your SocialMatix embed script.

The feed does not appear after publishing

WordPress removed my embed code after saving

WordPress may strip <script> tags for users without the unfiltered_html capability. This usually affects non-administrator roles. Ask an Administrator to add the embed, or upgrade your WordPress.com plan if script tags are blocked on your account.

The feed looks too narrow or misaligned

Can I add multiple feeds to different WordPress pages?

Yes. Create separate feeds in SocialMatix for each use case (for example homepage vs campaign page), then paste each feed's embed snippet into the relevant WordPress Custom HTML block.

Final takeaway

Adding a social media feed to WordPress is straightforward with SocialMatix: build your feed, copy one embed snippet, and paste it into a Custom HTML block. From there, your WordPress site stays fresh with moderated social content that updates automatically.

Ready to add your feed? Sign up for free with SocialMatix and embed your first social wall on WordPress in minutes.