Skip to content

Random Endpoint Coming in WordPress 7.2

WordPress 7.2 will come with a “random” endpoint (see WordPress post). The feature, which will be enabled by default, will create random redirects for individual posts (it can also be limited by category, tag, and post type). I am of two minds here. As a threshold matter, I agree with WordPress guru Jeff Starr that...

@social.emucafe.org
Nov 9, 20262 min read

ordPress 7.2 will come with a “random” endpoint (see WordPress post). The feature, which will be enabled by default, will create random redirects for individual posts (it can also be limited by category, tag, and post type). I am of two minds here.

As a threshold matter, I agree with WordPress guru Jeff Starr that this feature should not be enabled by default (see Mastodon post). Many webmasters will upgrade to WordPress 7.2 without seeing this new, potentially unwanted feature. The random endpoint makes no sense whatsoever for many sites on the web (e.g., the website for the law firm I work for does not need a random endpoint). While it is good that the endpoint can be disabled, the WordPress post introduces the ability to disable it in a condescending and unprofessional way: “if you have a legitimate reason to not support this on a site, or you simply hate fun…”

However, while the random endpoint should not be enabled by default, I plan to try it out both here and on New Leaf Journal. I am already using a plugin for random post functionality on NLJ (I never got around to setting it up here). Once I confirm the endpoint works with the 7.2 update, I will give it a try and look into replacing my plugin solution. But although I plan to give it a go, consider this a PSA for webmasters who may want to disable the random endpoint upon upgrading to WordPress 7.2. Back in February, I implemented a plugin to add a random post button to NLJ (see Newsletter note). Assuming the endpoint works as expected, I can remove the plugin from NLJ and add a button here (I never got around to setting the plugin up on this site).

I consider a “random” button a fun addition to my projects because I have published many articles on a variety of topics, but mileage may vary. Regardless of your position (if you are a fellow WordPress webmaster), consider this post a PSA for the upcoming update. HT to Jeff Starr for highlighting the news on his social media accounts.

You can reply to this article from your own site by sending a Webmention.

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions