Come with me as I briefly explore Blogrolls and re-introducing them in 2021 and creating a WordPress Block for their display.
Category: WordPress
It also serves to help visually indicate that your site supports the protocol if you don’t have a button/badge for it that points to something like https://mike.rockwell.mx/wp-json/webmention/1.0/endpoint. For those that care or are in-the-know there are manual services like https://telegraph.p3k.io/send-a-webmention or http://mention-tech.appspot.com/ which could be used as well.
On some sites I follow, I use those boxes about once or twice a month. I use it a bit more frequently on my own site to manually send myself webmentions from other sites that don’t send them, but which I come across either randomly or via refbacks.
Installed the Webmentions plugin for WordPress. Really digging it, even with just a little bit of experience with it so far. Micro.blog’s support for it is okay
Two awesome and interesting WordPress query strings for browsing websites:
?orderby=modified
- Example: https://ma.tt/?orderby=modified (Today, this indicates that for his 37th birthday post, Matt apparently went back and made a few tweaks/updates to some prior birthday posts.)
?orderby=comment_count
- Example: https://ma.tt/?orderby=comment_count
These could be used in combination with a /feed/
path to get an update of a WordPress site, potentially for updating posts within one’s digital garden and distributing as a feed.
WordPress’ Community Team has been discussing the return to in-person events since early December 2020, and has landed on an idea that would allow local me…
You asked - we delivered!
— WP Buffs (@thewpbuffs) January 4, 2021
We almost had @DavidWolfpaw on the WPAMA a few weeks ago, but had to cancel last minute. But his topic was SO popular, we rescheduled!
Coming your way this Wednesday, David and @allie_nimmons talk all things #IndieWeb!https://t.co/t7y3uuwIZM
This should be fantastic! I can’t wait.
If you’re a designer or developer with intermediate knowledge of HTML and JavaScript, and know your way around GitHub and the command line, this tutorial is for you. We’re going to walk step-by-step through converting a WordPress site into a static site generated from Markdown.
Narwhal is a free WordPress plugin I maintain which adds a minimal front end new post box. You may configure it within WordPress' Writing settings. I use t...
Automating syndication of reply contexts in Twitter Cards using OGP metacrap and plugins in WordPress
A Metacrap Problem
It’s metacrap–I know, I know–but I’ve been thinking about easy ways to use Open Graph Protocol meta data to add contextual Twitter cards to some of my content when syndicating posts to Twitter. My goal is to leverage the speed and ease-of-use of Micropub clients while doing as little as possible manually, but achieving as much parity between posts on multiple sites.
I’m particularly keen to do this to syndicate/share more of the articles I read and post about on my site without adding additional manual work on my own part.
Outline of Some Resources
The Post Kinds plugin for WordPress parses URLs for me and pulls in data to create reply contexts for a variety of posts like bookmarks, reads, watches, listens, etc. Since Post Kinds doesn’t display featured images (yet), I’ve also been using the External Featured Image plugin to display the featured images from the original to add to the reply context of my posts as well.
In addition to all these I’ve been using the All in One SEO plugin to easily add an SEO layer to posts without having to do much thinking about it. AIOSEO recently upgraded their UI and features in the last year, and yesterday I upgraded to the newest v4.0+. One of the new features it’s got is the ability to add default fields or pull in pre-existing custom fields to output OGP meta data.
Start of a Solution
So I got the idea that since Post Kinds and External Featured Image plugins are pulling in and displaying the sort of data I’d like to show in Twitter cards, I figured why not use them? While metacrap is a DRY violation, the fact that it’s automated for me and is based on data I’m actually showing visually on my website makes it feel much less dirty. It also has the benefit that it helps make some of my syndicated content look and feel on Twitter, more like it does on my website. This is also a problem since Twitter hampers how much data I can syndicate in a single post.
I’ve still got some issues about how to deal with the Post Kinds data, but after a bit of digging around, I discovered the image URL for External Featured Image plugin is hiding in the _dcms_eufi_img
field. So I can make the default Twitter settings in AIOSEO pull the external image by setting Default Post Image Source
to Image from Custom Field
and set the Post Custom Field Name
to _dcms_eufi_img
.
Since a lot of my posts are reads, bookmarks, etc., this works well, but I can easily override the settings for articles or other custom posts which I make less frequently.
Hopefully I can figure out the settings for Post Kinds to get the rest of the default fields to map across. I’m happy to hear ideas on what field names I’d need to use to get the Post Kinds Name
and Summary/Quote
fields to map over for the og:title
and og:description
respectively. Ideally I can manage to get it done without needing to get a subscription to the pro version of AIOSEO which also has support for custom taxonomies which is how Post Kinds works.
Since my theme has relatively solid microformats support, and I have plugin infrastructure to allow easy syndication from my website to Twitter through micropub clients, this last bit for creating Twitter reply contexts helps close some of the loop for me in my syndication workflow while keeping as much context across platforms.
Example
Here’s a visual example of a native post on my site and the corresponding syndicated copy on Twitter. There are some differences, mostly because I don’t have as much control of the appearance on Twitter as I do on my own site, but they’re about as close as I can get them with minimal work.
Hooray for one less plugin in the stack!
Crediting your own website when syndicating to Mastodon with WordPress plugins
I was trying to syndicate from my website so that the post on Mastodon would credit my website for the post and link back to my homepage as the application that made the post. You’ll notice at the bottom of the post there’s the post date and a globe icon, which indicates the post is public, followed by my website name ‘BoffoSocko.com’ and details about replies, reposts, and favorites.
I assuredly won’t release a public plugin for WordPress that does this. But since some have asked how I did it, I thought I’d share some of the internals of a few WordPress plugins that one can quickly modify to achieve the same thing.
That I can currently see, there are three plugins in the repository that will allow one to syndicate content to a variety of Mastodon instances. They are Mastodon Autopost, Mastodon Auto Share, and Share on Mastodon. The first two are closely related and essentially replicate the same codebase.
Similar to using Twitter’s API to crosspost, Mastodon is looking for two bits of information when an application is registered: a client name and a website URL.
Mastodon Autopost and Mastodon Auto Share, both have a file called client.php
which define these two variables.
public function register_app($redirect_uri) { $response = $this->_post('/api/v1/apps', array( 'client_name' => 'Mastodon Share for WordPress', 'redirect_uris' => $redirect_uri, 'scopes' => 'write:statuses write:media read:accounts', 'website' => $this->instance_url ));
You can edit this file with a text editor to change the 'client_name'
from 'Mastodon Share for WordPress'
to 'Anything You Want'
. If you’re in a joking mood, maybe change it to 'Twitter'
?
To change the URL so that the link on the client_name
directs to your website, you’ll want to change the line 'website' => $this->instance_url
.
In particular change $this->instance_url
to 'https://example.com'
where example.com would be your website. I’ll note that $this->instance_url
on this line in the original plugin is a bug. If left alone, it points the URL to your home Mastodon instance instead of to the more logical https://wordpress.org/plugins/autopost-to-mastodon/
where the plugin lives.
If you prefer using Jan Boddez‘ excellent plugin, you’ll want to do something similar, except in that case you’ll want to change a file named class-options-handler.php
in the includes
folder.
Here you’ll want something like:
'client_name' => __( 'Example.com' ),
But note that Boddez doesn’t have a similar bug, so the website line
'website' => home_url(),
is already correctly defined so that your website will automatically be linked without any changes to it.
If you’re already using one of these plugins and manually modify them, note that you’ll probably need to re-authorize the plugin so that the changes propagate.
The rationale With Full Site Editing on the horizon for WordPress, Theme creators need to start to learn how to make themes in a different way. Full Site Editing is sea change in the way that themes work. When Themes were first added to WordPress, they were simple; just a few template files and some...