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="https://www.threads.net/intent/post?text=<?php the_title(); ?>%0A%0A<?php the_permalink(); ?>"> <i class="bi bi-threads"></i> </a> </span>
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.