It’s really simple:
- Log in through your server’s website
- Go to the post you want to embed
- Click ⋯ at the bottom of the post, then select Embed
- 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.