Redirect URL to Post (1/1)

Redirect URL to Post 插件只需在浏览器中输入 WordPress 网站的 URL,然后在结尾处添加 ?redirect_to=… + 参数值

可用的 redirect_to 参数值:

  • last 或 latest – 该 URL 将会重定向到最新的一篇文章。
  • first 或 oldest – 该 URL 将会重定向到最早(第一篇)的一篇文章
  • random – 该 URL 将会重定向到随机的一篇文章。
  • prev 或 previous – 该 URL 将会重定向到上一篇文章 (按日期)。
  • next – 该 URL 将会重定向到下一篇文章 (按日期)。
  • custom – 文章将根据强制参数 orderby 和可选参数 order 确定。

您还可以通过附加的过滤器参数来限制所考虑的文章的范围,,例如 &s=searchaword 或 &cat=2, 或 offset 转到第二个最新的文章或前一个文章之前的文章。参数 “随机” 与 “计数” 和 “偏差” 相结合,使您能够以与其他文章不同的概率选择最新(或最早)的文章。

设置和参数

Redirect URL to Post 插件后台没有设置页面,您可以完全通过 URL 中的查询参数来配置插件

网址示例

注意: 替换 “http://www.example.com/” 为你自己的网址,空格替换为 “%20”。

  1. http://www.example.com/?redirect_to=latest – 重定向到最新的一篇文章
  2. http://www.example.com/?redirect_to=random&pk_campaign=random – 重定向到一个随机文章并跟踪访问
  3. http://www.example.com/?redirect_to=prev – 重定向到上一篇文章
  4. http://www.example.com/?redirect_to=random&each_once=rewind – 重定向到一个随机文章,避免重复,然后重新开始
  5. http://www.example.com/?redirect_to=prev&offset=1 – 重定向到上一篇文章之前的文章
  6. http://www.example.com/?redirect_to=random&count=10 – 重定向到 10 个最新文章中的某个随机文章
  7. http://www.example.com/?redirect_to=random&count=10&bias=80 – 重定向到随机文章,插件以 80% 的概率从最新的 10 个中选择一个,以 20% 的概率选择其余的
  8. http://www.example.com/?redirect_to=random&count=10&offset=1 – 重定向到最新发布的 10 篇文章中的任意一篇
  9. http://www.example.com/?redirect_to=random&after=1%20month%20ago – 重定向到不超过1个月的文章中的随机文章
  10. http://www.example.com/?redirect_to=latest&exclude=4,7 – 重定向到最新的文章,不包括 ID 为 4 和 7 的文章
  11. http://www.example.com/?redirect_to=latest&offset=1 – 重定向到第二个最新文章
  12. http://www.example.com/?redirect_to=custom&orderby=comment_count&order=DESC – 重定向到评论最多的文章
  13. http://www.example.com/?redirect_to=latest&s=iaido&default_redirect_to=12&cache=200 – 重定向到包含 “iaido” 一词的最新文章,如果找不到,则重定向到 ID 为 12 的页面或文章;使用具有 200 秒生存期的缓存

按钮/短代码

[ redirect_to_post_button ]

[redirect_to_post_button]

Redirect URL to Post 插件还提供了一个短代码 [ redirect_to_post_button ] 来创建一个简单的按钮。

Log In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy

Add to Collection

No Collections

Here you'll find all collections you've created before.