Here is the code to add a share to threads link on your Wordpress site.

Share on Threads

When I redesigned my WordPress Theme last month I decided not to include links to my Twitter bio. I also dropped the ability to share individual blog posts to Twitter. I haven’t opened the app on my phone in months and don’t really want to support what has become a truly toxic hellscape of right-wing lunatics and poorly-targeted ads.

I have been loving Threads, though. I added my Threads bio link to the theme navigation and considered adding the ability to share individual posts via Threads, but couldn’t find any information about an API. So I was pleasantly surprised to see Jessel mention the first threads social plugin and a quote of Lucas Puskaric’s announcement of THREADEMBED.

Lucas’ HTML is pretty nifty, but I didn’t want to use the badge/button and went with a bootstrap icon. You can recreate the bootstrap (with bootstrap icons) WordPress implementation I have running here with the following snippet:

<span class="label label-primary">
     <a target="_blank" title="Share on Threads"rel="noreferrer" href="<?php the_title(); ?>%0A%0A<?php the_permalink(); ?>">
          <i class="bi bi-threads"></i>

Note that I’ve removed my personal css classes, etc. so if you do a View|Source on my site it won’t look exactly like this. But it’s enough to get you started.

Post the first comment:

I'll never share your email address and it won't be published.

What Is This? is the personal weblog of me, David Vincent Gagne. I've been publishing here since 1999, which makes this one of the oldest continuously-updated websites on the Internet.

A few years ago I was trying to determine what cocktails I could make with the alcohol I had at home. I searched the App Store but couldn't find an app that would let me do that, so I built one.


You can read dozens of essays and articles and find hundreds of links to other sites with stories and information about Ernest Hemingway in The Hemingway Collection.