Adding social media content to your WordPress post or page is a great way to showcase social commentary, display testimonials or highlight something that your own channels have recently shared. You’ll see this in action in many news sites these days, as they include Tweets from famous or influential people within their content. With WordPress, it’s incredibly easy to add thanks to the oEmbed feature.
First, go to the page or post that you want to add the social content to. In the content editor, create a new line where the inserted social content can go.
Then, go to the specific social post that you aim to embed and copy the URL from the browser. Paste it into the content area, but be sure it is not hyperlinked. If it is an Instagram post, a tweet from Twitter or content from Vine, Reddit, or YouTube, WordPress will automatically turn the URL into an embed.
If you check out the live preview in the visual editor you’ll see the social post embedded – and no further styling is needed!
Here’s an example, a tweet from us back in January that we’ve embedded here.
— The DMA (@the_dma) January 13, 2015
If this doesn’t work, or if you’re trying to embed a Facebook post, use the embed shortcode around the URL, like the example below:
[ embed] https://twitter.com/the_dma/status/554858024398249984 [/embed]
This is the same functionality that makes it easy for you to embed videos into your posts.
Please note that if the social content that you initially linked is deleted, it will no longer show (perhaps showing “this content has been removed by the user” copy in its place. Also, some content on social media may be visible to you, but not all users on that platform. If the user that shared the content has a privacy feature of some sort, not everyone may be able to see this content in your post or page.
To test that the content is available generally try accessing your blog post in a web browser that is not signed in to your social accounts.
To see the latest list of social media platforms that allow for this automatic embed, visit the WordPress codex and navigate to “Okay, So What Sites Can I Embed From?”