Do you wish to redirect users to a random post? A random put up permits customers to discover older articles and browse posts which can be hidden in your weblog archives. On this article, we’ll present you learn how to simply redirect users to a random post in WordPress.
Why You Ought to Redirect Users to a Random Submit?
By default, WordPress posts seem in reverse chronological order (from latest to oldest), so your customers will learn the newest put up first. In case you write commonly in your weblog, then your customers might not have the ability to uncover your older articles.
One solution to overcome this concern is to show random posts within the sidebar of your weblog. It’ll permit your customers to find new content material whereas rising your web page views.
It’s also possible to redirect users to a random post from 404 error pages or add a ‘Shock Me’ button in your blogs customized archive web page which takes customers to a random put up.
That being stated, let’s have a look on learn how to redirect users to a random post in WordPress.
Redirecting Customers to a Random Submit in WordPress
Very first thing it’s worthwhile to do is to put in and activate the Redirect URL to Submit plugin. For extra particulars, see our step-by-step information on learn how to set up a WordPress plugin.
Upon activation, you’ll see the URL question parameters for redirection on the WordPress plugins web page. This plugin has no different settings web page.
You should use any of those question parameters in your posts and pages to redirect customers to random posts, newest posts, and different older articles.
To redirect users to a random post, it’s worthwhile to copy the random put up question parameter from right here and add it in your error pages and different pages as a hyperlink.
Clicking on the hyperlink will redirect customers to a unique random put up.
It’s also possible to add a button for redirection in your weblog. Merely add this shortcode in your WordPress posts and pages to show the random put up button.
When customers click on on this button, they are going to be redirected to a random put up in your web site.
You May Also Like : How to Add LiveChat to Your WooCommerce Store (and Boost Sales)
We hope this text helped you discover ways to redirect users to a random post in WordPress. You might also wish to see our skilled choose of the greatest WordPress search plugins to enhance your web site search.
If you liked this article, make sure to hit the bell for getting our latest updates and share this article with your friends in every social media platforms.