How to add web mentions to your WordPress site

A Webmention enables enables cross-site conversations. Letting site A know that site B is mentioning them (be it via link, a like, a re-post... there are many times of mentions).

One of the cool use cases is to link your Fediverse account (Mastodon, in my case) with your blog. So every time you share a link from your blog and people react to it, these reactions (comments, or likes) will show up as native comments in WordPress. Pretty cool, huh ? 😁

Requirement: Enable pingbacks

There are 2 things you should enable in Settings > Discussion

  1. Attempt to notify any blogs linked to from the post
  2. Allow link notifications from other blogs (pingbacks and trackbacks) on new posts

Otherwise even if webmentions hit your site, you wouldn't see them.

Requirement: Install the Webmention plugin

Requirement: Bridgy

This free service is used to ping your site when, in my case my Mastodon account, makes a post linking to one of my articles. The likes and mentions from that initial post on Mastodon will be pinged back to my WordPress site.

https://brid.gy/

Requirement: Install Semantic-Linkbacks

It modifies the way your comments are printed, adding the mentions, likes in a nice way. It includes CSS and JS for these rich features.

Conclusion

It might need a little tweaking to show the comments to your liking, if the out of the box doesn't please you. A part from that, quite straightforward.

Comments

  1. @chriscoyier The centralized hub of the conversations happening elsewhere (like here on Mastodon) but shown on the blog (and stored there) is already doable 😁Here’s my small blog post about it, I have it working on two of my blogs without issues 😎 The only downside is that you need a third-party to complete the circle➑️ https://ricard.dev/how-to-add-web-mentions-to-your-wordpress-site/
    How to add web mentions to your WordPress site – Ricard Torres dev

  2. @ricard Thanks!So, this would mean that I, on Mastodon, might follow your blog. And my Mastodon interactions will show up in the comments section on the blog?That’s pretty cool.Does it work the other way too? Can someone react / respond to a comment I made that showed up on the blog and send me a masto-notification?

Leave a Reply

Your email address will not be published. Required fields are marked *