How to Redirect Users to a Random Post in your WordPress Site?

0
110
How to Redirect Users to a Random Post in your WordPress Site

Do you want to Redirect Users to a Random Post in your WordPress Site?

By default, posts in WordPress appears in the newest to the oldest form (reverse chronological order). The websites where blogs, articles, posts are published on a regular basis, the visitors might find difficult to view the old posts. 

Redirecting to a random post direct your users to a new or different post. It allows users to inspect older blogs, articles, posts and even explore to the older post hidden in blog archives. 

The visitors can cover up with many necessary posts. It will be beneficial to you as well as the visitors. 

In this tutorial, we will learn to redirect users to random posts step-by-step. Let’s start!

Redirect Users to a Radom Post

As a first step, you need to install the plugin Redirect URL to Post. Follow our tutorial guide on ‘How to Install a new WordPress Plugin?’

After activating the plugin, you can view the URL query parameters for redirection in the WordPress plugin page of the site.

How to Redirect Users to a Random Post in your WordPress Site

Note: The plugin has no other setting page. 

 Among the given query parameters, you can use any of these in your page or post. It redirects users to a random post, latest post, older blogs and articles. 

In order to redirect users to a random post, 

  • Simply copy the random post query parameter from the given options and add it to your error page and any other pages as a link.

In case you want to add a button for redirection,

  • Add [redirect_to_post_button] shortcode in your WordPress post and pages to display button. 

When users click on the link or the button, they will be redirected to a random post in your site. 

Easy, Simple and Quick. 

Also, follow our tutorial guide here for more blogs and articles related to WordPress.

LEAVE A REPLY

Please enter your comment!
Please enter your name here