Skip to main content

Senior WordPress platform developer. Open web / Music. DJ (under @CloudseerDJ). Tall Dutch guy.

twitter.com/svandragt

github.com/svandragt

mixcloud.com/cloudseer

So seems to have removed the Preferences > Sidebar > Additional Options > Show the Quick Switcher setting. Problem is I must have accidentally enabled this before it was removed and now I can't get rid of it?

How the Dutch Made Utrecht a Bicycle-First City

Utrecht, the fourth-largest and fastest-growing city in the Netherlands, where average daily bike trips number 125,000.

The dazzling number of cyclists are quite a sight. 

ACF field groups with the same option position can be ordered by setting a key value. Key values starting with underscores are shown first. Field groups without keys are displayed inconsistently depending on the user role.

WordPress Canonical URLs for Category/PostName Permalinks

1 min read

When the permalink format is set to %category%/%postname%/ then a post is available under category/postname links for all categories, as well as under all parent/child/postname links.

If you use Yoast SEO and have set a primary category, that  becomes the canonical URL that's used for SEO. If you don't then the postname for whatever category has a lower ID (was created first) becomes the canonical URL.

What is the meaning of a site's Last Updated property?

2 min read

When running a WordPress multisite, in the site directory each site has a Last Updated property. I previously incorrectly assumed this reflected  when the site's metadata changed, for example the site's attributes. However, archiving and deactivating a site does not change the Last Updated value, so what does it do in WordPress 5.2.1?

As usual the best place to look is the WordPress codebase. It turns out that, on a multisite, this value is updated whenever a post is updated or deleted. It reflects the last content update, not the site's metadata.

By inspecting the html and looking up the property name, we find that the function that updates this is called wpmu_update_blogs_date and there is an action hook wpmu_blog_updated that receives the site_id variable. This function can be called whenever we want to update the value. It isn't used anywhere else.

If we're looking to update this date whenever the site's status changes, then via the same process it appears that he actions to hook into site attribute updates are in wp_maybe_transition_site_statuses_on_update so one could write a quick mu-plugin that updates the Last Updated property whenever these fire.

Where is the tin-foil-hat emoji?

I think I finally figured out how to use Apple News: subscribe to topics; unsubscribe from all publications. I use an RSS reader to follow sites.

The subjective safety of a place is expressed well by its reaction to people loitering.

Keyboard lag in SecondLife was caused by Popclip. Zapp!

Safari Web Content's high CPU usage was caused the Pocket extension.. Maybe downloading articles in the background? Zapp!