How to Redirect Users to a Random Post in WordPress
Do you need to redirect customers to a random submit? A random submit permits customers to discover older articles and skim posts which can be hidden for your weblog archives. On this article, we can display you how you can simply redirect customers to a random submit in WordPress.
Why You Will have to Redirect Customers to a Random Put up?
By means of default, WordPress posts seem in opposite chronological order (from latest to oldest), so your customers will learn the newest submit first. In case you write continuously to your weblog, then your customers would possibly not be capable of uncover your older articles.
A technique to conquer this factor is to display random posts within the sidebar of your weblog. It’ll permit your customers to find new content material whilst expanding your web page perspectives.
That being stated, let’s have a look on how you can redirect customers to a random submit in WordPress.
Redirecting Customers to a Random Put up in WordPress
Upon activation, you’ll see the URL question parameters for redirection at the WordPress plugins web page. This plugin has no different settings web page.
You’ll be able to use any of those question parameters for your posts and pages to redirect customers to random posts, newest posts, and different older articles.
To redirect customers to a random submit, you want to replicate the random submit question parameter from right here and upload it for your error pages and different pages as a hyperlink.
Clicking at the hyperlink will redirect customers to another random submit.
You’ll be able to additionally upload a button for redirection to your weblog. Merely upload this shortcode for your WordPress posts and pages to show the random submit button.
When customers click on in this button, they’re going to be redirected to a random submit to your web site.
We are hoping this text helped you learn to redirect customers to a random submit in WordPress. You may additionally need to see our skilled select of the best WordPress search plugins to give a boost to your website seek.