The moon across Cō̤-hāi I chased, the dream in Sĕ̤ng-hŭng I left
When saving a WordPress post, we can use the save_post hook to set the post format. During the setting process, to prevent an infinite loop, we need to utilize remove_action and add_action. Each time a post is saved, we check if the post format has been set, and if not, the default post format is…
As the title suggests, you definitely don’t want to manually copy and paste each account you want to follow from Mastodon to Friendica. It’s time-consuming and tedious. Open your Mastodon settings page and find the “Data Import and Export” tab. In the “Export” section, locate the “Following” option. On the right of this option, you…
WP Super Cache has been my go-to caching plugin for the longest time. Its interface is simple, and the combination of its expert mode—bypassing PHP altogether on cached pages—and preloading function speeds up WordPress sites a lot. Replace WP Cron by an Actual Cron Job Avoiding WP Cron calls on random page loads by setting up a…
One thing I really liked—past tense, as I recently stopped using Yoast on this very website—about Yoast SEO’s XML sitemaps is the ability to exclude specific posts and pages. I don’t necessarily want a ‘Thank You’ page popping up in search results, you see. Turns out Jetpack allows for that, too—in code, which I actually like!…
I use Indigenous for Android to create the vast majority of notes on this site, rather than WordPress’s “official” app—which last I checked doesn’t play nice with Custom Post Types. Indigenous “speaks” Micropub, a kind of CMS-agnostic protocol for creating and editing all types of content, which WordPress supports by means of a wonderful little plugin.…
If you’re running WordPress and use the wonderful IndieAuth plugin to issue tokens for all of your IndieWeb services, here’s how you can automatically invalidate—destroy, in fact—these tokens. Why? Some applications will automatically log you out after an hour or so, and request you again authorize the app to do its thing, resulting in a freshly issued…
You Don’t Need an SMTP Plugin for WordPress Why not do this instead? (Adjust as required.)
I’m pretty sure Chris Aldrich’s site is where I first learned about using ↬ (“rightwards arrow with loop”) for giving credit. (The symbol would then mean something like hat tip. “Via” is something else, still, apparently, although the distinction isn’t super clear to me. Since I already mark up reposts with microformats, I’m going to stick with this one—“hat tip”—for…
I love sprinkling little stars across my Mastodon timeline🌟