跳到内容

Disable Random Content

v1.3.2

kaggdesign · 2026年11月12日 上架

Disable WordPress 7.2 random post redirects, including /random/, on activation. Keep random links for selected archives.

正在使用
10 以下
评分
5.0 / 5
累计下载
416
最近更新
2026年11月25日
1 条评价需要 WordPress 7.1+已测试到 7.2PHP 7.4+

截图

Settings > Disable Random Content with random redirects allowed for the Blog category.
Settings > Disable Random Content with random redirects allowed for the Blog category.
The demo homepage shows a blocked site-wide route, a random Blog post link, and a normal Updates archive link.
The demo homepage shows a blocked site-wide route, a random Blog post link, and a normal Updates archive link.
The site-wide /random/ URL returns a 404 on the demo site while the plugin is active.
The site-wide /random/ URL returns a 404 on the demo site while the plugin is active.

Activate Disable Random Content to turn off WordPress 7.2’s /random/ URL and random redirects from archives. To keep random links for specific categories, tags, or other eligible archives, select them under Settings > Disable Random Content. For example, allow /random/category/blog/ and keep the site-wide /random/ disabled.

You can activate the plugin on WordPress 7.1 ahead of the upgrade, either for one site or across a Multisite network. It starts controlling random redirects when the site runs WordPress 7.2 or later.

Try both links in the WordPress Playground demo linked in the setup guide.

What it does

  • Stops redirects from WordPress’s random URLs, such as /random/ and random archive routes.
  • Prevents requests using the random query parameter from selecting and redirecting to a random post. The underlying archive or search request continues normally.
  • Lets you allow random redirects for individual category, tag, public taxonomy, or eligible post type archives.
  • Leaves your published content available at its usual URLs.
  • Handles permalink rules automatically on individual sites and Multisite networks.

It does not affect unrelated random-order queries in themes or other plugins.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums