WordPress 7.2 Random URLs: How /random/ Works and What to Check
WordPress 7.2 is planned to introduce a built-in random-content redirect. Instead of building a custom feature, a site owner could link visitors to a URL such as /random/, which sends them to a randomly selected published post. WordPress’ testing guide also describes random URLs for category, tag, author, and post-type archives, plus search results. WordPress 7.2 feature testing guide
The feature is meant for content discovery, such as a “Surprise me” button that helps visitors find older articles. It is not a ranking feature, and a random URL does not create a new article. The WordPress 7.2 testing guide says random redirects are expected to use a temporary 302 response and include noindex headers. WordPress 7.2 testing guide
Because WordPress 7.2 is still in its pre-release cycle on November 27, 2026, site owners should verify the final behavior after the stable release. Here is how the planned feature works and what to test before using it.
What are WordPress random URLs?
A random URL is an endpoint that redirects a visitor to a randomly selected published post. WordPress’ current development notes describe /random/ as a new endpoint and say it can work with archives, such as a category or author archive. The random base is configurable through Permalink Settings, and developers can control whether custom post types participate. WordPress Core development notes
For example, the default behavior may look like:
/random/sends a visitor to a random eligible post./random/category/tutorials/sends a visitor to a random post in that category./random/author/name/sends a visitor to a random post by that author.
The exact available routes depend on the final WordPress version, permalink settings, and eligible content types. Use WordPress’ official testing guide and release notes to confirm the behavior on the version you run.
Why would a website use a random post link?
A random post link can help readers explore content beyond the latest article list. It may be useful on:
- A blog with a large archive of evergreen tutorials.
- A resource library where older pages remain useful.
- A “Read something random” button in the sidebar or footer.
- A category page where visitors want another article in the same subject area.
- A site that wants to make archived content easier to rediscover.
For example, a WordPress tutorial site could add a button that says “Show me a random troubleshooting guide.” A visitor who clicks it might land on an older database error article rather than only seeing the newest posts.
This feature can improve discovery for people who enjoy browsing. It does not guarantee more page views, better rankings, or longer sessions. Those outcomes depend on the site, the content, and whether visitors find the random destination helpful.
How does /random/ work in WordPress 7.2?
WordPress’ development notes describe a random-content redirect built on the existing rewrite, WordPress request, and query APIs. Public post types with archives can participate by default, and developers can adjust behavior through the new randomable argument or disable the feature with a filter. WordPress Core development notes
The WordPress test guide lists expected behavior for whole-site random URLs, category and author URLs, and search-result URLs. It also says a random URL with no matching content should return a 404 rather than redirecting to an unrelated page. WordPress 7.2 testing guide
A “random” route is a redirect, not a page that permanently displays a rotating set of content. Each visit may select a different eligible post. That can make it handy as a navigation shortcut, but it is not a substitute for a curated “related articles” section.
What does the feature mean for SEO?
It is not a new post or an SEO landing page
A random URL does not contain unique editorial content. It is a route to a randomly selected post. Treat it as a navigation feature, not as a page that needs its own keyword target or SEO title.
Google explains that redirects are signals used to understand URL relationships. The type and purpose of a redirect matter. For example, Google treats permanent redirects as a signal that the target should be canonical, while temporary redirects generally indicate that the source should remain the URL represented in search. Google Search Central: Redirects and Google Search
Random URLs are expected to be noindex
WordPress’ test guide says the expected random-content redirect response includes a noindex header. That is consistent with the route being a utility for visitors rather than a distinct search landing page. WordPress 7.2 testing guide
Do not add /random/ to your sitemap as if it were a regular article. Instead, link to it from a button or navigation element if it makes sense for users. After the stable feature arrives, check the actual response and headers on your site rather than relying only on a beta description.
It does not replace internal linking
Random discovery sends users to an arbitrary eligible article. It cannot decide that two pieces of content are closely related. Keep using descriptive contextual links inside articles, related-post blocks, category hubs, and navigation to connect relevant pages.
A useful structure might pair a “Random article” link with a topic category list. That way, visitors can either explore by subject or take a chance on a different post.
Do not use a 302 as a substitute for a permanent URL change
A random redirect is designed to send a visitor to changing destinations. It should not be treated like a permanent redirect from an old article URL to its replacement. Google’s redirect documentation describes permanent redirects as signals for a target URL to become canonical. Temporary redirects serve a different purpose. Google Search Central: Redirects and Google Search
If you move or delete a post, handle that URL with an appropriate redirect to a relevant permanent destination. Keep the random endpoint separate from those content migration rules.
How to test random URLs after updating WordPress
Because WordPress 7.2 is not yet a stable release on November 27, do not use a pre-release build on your production site. Test it on a staging copy or a suitable test environment. The official WordPress 7.2 test guide describes the feature’s expected behavior and test cases. WordPress 7.2 testing guide
When testing:
- Confirm pretty permalinks are enabled.
- Publish several test posts, including a few in the same category.
- Visit
/random/more than once and check that it redirects to eligible published posts. - Try category, author, or post-type routes supported by your setup.
- Try a search-based random route if it is part of the final implementation.
- Test a route with no matching posts and confirm it returns the expected 404.
- Check whether the random base can be changed in Permalink Settings.
- Inspect the response code and
noindexbehavior after the final version ships.
If a route returns a 404, first check whether the final WordPress version is installed and whether permalinks have been refreshed. Then verify the route format and whether your site’s rewrite rules or security plugins affect it.
Should you add a “Surprise me” button?
Add one if it fits your readers’ needs. It can be a small extra navigation choice on a blog with a strong archive. Use clear wording so visitors understand that the destination is random. For example, “Read a random article” is more transparent than a vague button labeled “Go.”
Before adding it to a key navigation area, test it on mobile, check the destination relevance, and consider whether visitors can easily return. If a random selection can lead to outdated or superseded advice, review older content and update or retire it first.
Random selection is most useful when many archived posts remain trustworthy and helpful. If the archive includes outdated product instructions or old security recommendations, improve that content before promoting random discovery.
WordPress random URL testing checklist
- Test only on staging while using a pre-release build.
- Confirm the final stable version supports the feature.
- Check the route with and without matching content.
- Verify that the redirect leads to a published, eligible post.
- Confirm the response code and
noindexheader. - Keep random routes out of the article sitemap unless official behavior changes.
- Continue using contextual internal links for related posts.
- Review older posts before exposing them through random discovery.
Sources
Frequently Asked Questions
Does WordPress 7.2 create a random post page?
The planned feature is a random-content redirect. It sends visitors from a route such as /random/ to a randomly selected eligible published post. It is not a new editorial page. WordPress Core development notes
Will /random/ help my WordPress SEO rankings?
There is no official claim that it improves rankings. Its stated purpose is content discovery for visitors. Use it only if random browsing helps your audience.
Will Google index the random URL?
The WordPress test guide says the expected random redirect includes a noindex header. Confirm the behavior on the final stable version before making assumptions about how your site handles it.
Can I create a random link for one category?
WordPress’ test guide describes random URLs for categories and other archives. Check the final release documentation and test the route on your installation before linking it publicly.
Is WordPress 7.2 already stable?
As of November 27, 2026, WordPress 7.2 is still in pre-release testing. Its release candidate should be tested outside production. Check WordPress.org for the current release status before updating a live site.
