Are your older posts still unread by the new users? Do you want users to know what you have published until now? Here is the key that is redirecting users to a random post in your WordPress site. As the posts appear in reverse order in WordPress like from latest to the oldest post so users tend to see newer posts firstly. If you want your website users to get a better insight of your blog posts, then below are some significant ways.
Create a URL for the Random Post
Firstly, you need to install and then activate the “Redirect URL to Post” plugin using the WordPress Plugin directory. The URL query parameters will appear for the activation of the URL to the random posts in the WordPress. There is no other settings page present in WordPress. You can use any of the “Query Parameters” as for the older posts, random posts, or newer posts. You just have to use the parameter for the random posts and add in other web pages as a link to redirect users.
Adding a Random Post Button in Your WordPress
Even by adding the “Random Post” button on your WordPress site, you can redirect your users. You just have to add the shortcode-‘[redirect_to_post_button]’ to the WordPress pages and posts to redirect your users. This will help in redirecting your users to the particular random post link you want.
Creating a PHP Template File
Even the site owners can use “WordPress Template Hierarchy” to create the random post template file or page. The file can be named ‘page-random.php’. Here, the user can load the web page by using the slug “random.” This random page post will load through the “page-random.php” template. This proves beneficial to the WordPress site owners who want to redirect users to any of the archived random posts.
Using the 307 HTTP Redirect Code
One can also use the 307 HTTP Redirect Codes, which is just the status code. This can be used for redirecting the users to the random posts. This Redirect Code will also make the Search Engine Bots to understand that it is a “temporary redirect.” Since redirects are not considered SEO friendly most of the times.
Wrapping up, by using these aforementioned methods, you can make users see your archived blog posts or articles. This way, you will receive more page views and increased traffic. Even the WordPress beginners can also use these easy techniques.