Jan’s Blog

  • Home
  • WordPress
  • About
  • Notes
  • The Block Editor, Custom Meta, and ActivityPub

    Feb 6, 2024 • bddz.be/wRX

    by

    Jan

    I’ve been using WordPress’ “new” block editor for quite a while now, have moved my site over to a block theme, and so on, but I also almost always have a couple “old-style” meta boxes open. And because of how WordPress works, this combination of Gutenberg and meta boxes results in posts being “saved” twice,…

    Tagged: activitypub, gutenberg, wordpress
  • An Interesting Tiny Bit of Code

    Jan 3, 2024 • bddz.be/jAB

    by

    Jan

    Just noticed this little code snippet in the WordPress’ ActivityPub plugin’s codebase.

  • IndieBlocks v0.10.0

    Nov 28, 2023 • bddz.be/GkN

    by

    Jan

    I should probably blog about this over at the IndieBlocks website, but whatever. So, what’s new in version 0.10.0? Well, webmentions for replies. That is, the plugin is now able to also send webmentions for comments that themselves are replies to a comment that originated as a webmention. (Makes sense? Good.) Doesn’t matter whether those…

    Tagged: indieblocks, indieweb, wordpress
    Also on Mastodon
  • My WordPress Plugin List

    Nov 28, 2023 • bddz.be/yRx

    by

    Jan

    Quick overview of most of the plugins I’m running here. I run quite a few “mu-plugins,” too, to further tweak things, but let’s keep those for some other time.

    Tagged: plugins, wordpress
  • ActivityPub Performance Tweaks

    Nov 5, 2023 • bddz.be/LeJ

    by

    Jan

    Some things to consider when enabling ActivityPub on a self-hosted WordPress install. TL;DR: If your setup allows for it, use NGINX’s FastCGI cache; if not, consider the Surge plugin. Or a beefier server. Whenever one of your posts gets “boosted,” a whole lot of other servers may try and fetch (or GET) that post’s JSON…

    Tagged: activitypub, caching, plugins, self-hosting, wordpress
    Also on Mastodon
  • Object Storage and WordPress

    Oct 26, 2023 • bddz.be/APO

    by

    Jan

    I used to actually host a Mastodon server. And it was then I first started to look into S3 object storage. For those not in the know, Mastodon—unlike, e.g., your average self-hosted RSS reader—stores both statuses and media of near the whole dang Fediverse … locally. (I mean, there are various reasons to want to…

    Tagged: caddy, object storage, scaleway, wordpress
    Also on Mastodon
  • Share on Mastodon v0.17.1

    Sep 25, 2023 • bddz.be/8LQ

    by

    Jan

    This one contains a couple bug fixes. I also refactored some of the plugin’s inner logic. If you run into problems, hit me up.

    Tagged: plugins, posse, share on mastodon, wordpress
    Also on Mastodon
  • Implementing `is_gutenberg()`

    Implementing `is_gutenberg()`

    Sep 17, 2023 • bddz.be/v2G

    by

    Jan

    Share on Mastodon used to rely on (only) the transition_post_status hook to kick off a request to Mastodon’s API. Then Gutenberg came.

    Tagged: code, gutenberg, wordpress
    Also on Mastodon
  • Share on Mastodon v0.17.0

    Sep 3, 2023 • bddz.be/WPL

    by

    Jan

    I recently released a new version of Share on Mastodon. As of version 0.17.0, Gutenberg users will see a “proper” document settings sidebar panel instead of the previous “classic” meta box.

    Tagged: plugins, share on mastodon, wordpress
    Also on Mastodon
  • Displaying “Share on Mastodon” Links on WordPress’ Front End

    Aug 10, 2023 • bddz.be/G1z

    by

    Jan

    There are several ways to show a link to a post’s corresponding Mastodon status—an example of a so-called “syndication link”—on your site’s front end.

    Tagged: share on mastodon, wordpress
    Also on Mastodon
  • A Gutenberg `publish_post` Equivalent

    Jul 29, 2023 • bddz.be/9DO

    by

    Jan

    I’ve been porting bits and pieces (i.e., the main “meta box”) of Share on Mastodon to a “proper” Gutenberg “sidebar panel.” One of the things the “classic” meta box does, is display the resulting Mastodon URL after a post is published (or updated). In order to accomplish a similar thing in the block editor, I…

    Tagged: gutenberg, javascript, share on mastodon, wordpress
    Also on Mastodon
  • Overengineered “Shared-on-Mastodon” Notes

    Jul 16, 2023 • bddz.be/4eN

    by

    Jan

    A “simple” add-on plugin that ensures “notes” are crossposted in full and correctly threaded, and converts HTML to Markdown before posting to Mastodon.

    Tagged: markdown, plugins, share on mastodon, wordpress
    Also on Mastodon
  • Webmention Spam

    Jun 19, 2023 • bddz.be/4DB

    by

    Jan

    I’ve yet to receive any! Or maybe I missed a bunch, because of how I set up Webmention.

  • WordPress’ Block Editor and Custom Post Meta

    May 8, 2023 • bddz.be/Poa

    by

    Jan

    Quick recap, mostly just for me: In the classic editor, you have a custom meta box. You hit “Save,” “Publish,” “Update,” etc., it will submit the page; on the back end, you now have access to the various $_POST variables and can use them to update, e.g., (custom) post meta (“custom fields”). Easy peasy. With…

    Tagged: gutenberg, plugins, wordpress
    Also on Mastodon
  • Share on Mastodon v0.14.0

    May 4, 2023 • bddz.be/11V

    by

    Jan

    I released a new (and long overdue) Share on Mastodon version. Major changes are the following: Accidental sharing of older posts has become much more difficult Mastodon statuses can be (somewhat) customized from the Share on Mastodon meta box (on New/Edit Post screens) Previously, statuses could be customized (a whole lot) via filter hooks only.…

    Tagged: plugins, share on mastodon, wordpress
    Also on Mastodon
Next Page→

Browse by Content Type

  • Articles
  • Notes
  • Likes
  • Listens

Miscellaneous

  • About
  • WordPress
  • /now
  • /uses
  • RSS Feed
  • Pixelfed
  • Mastodon
  • GitHub