How to embed Mastodon posts on a website

It’s really simple:

  1. Log in through your server’s website
  2. Go to the post you want to embed
  3. Click ⋯ at the bottom of the post, then select Embed
  4. Copy and paste the HTML code into your website’s page code

This works on any site, blog, or other service that accepts HTML code in posts. For example, news website The Verge embedded a post from Mastodon in this story ⧉.

Embedding on WordPress sites

If you’re using WordPress, don’t use WordPress’s “Embed” block. Instead, use WordPress’s “Custom HTML” block and paste Mastodon’s HTML embedding code there.

If you want to embed a Mastodon account’s public feed on a WordPress site, you can use WordPress’s “RSS” block and insert the Mastodon account’s RSS feed address.

↩ Back to the front page