WordPress For Non-Techies

How to Redirect Users to a Random Post in WordPress

Rate this post

Do you want to show random posts on your WordPress site? Displaying the random posts gives your users a chance to view more of your content on your site that they normally may not have. In this video, we’ll show you how you can easily redirect your users to a random post in WordPress.

For this tutorial we will be using the plugin ‘Redirect URL to Post’ found here:

With that plugin installed and activated you will see information about the shortcode and other URL parameters, you can use to set up links to random posts on your site. You can use any of the parameters you like or there is also a shortcode that we use in the video. The shortcode is below and will create a button that redirects for you.


The shortcode can be added to the end of your posts or pages so users have the option to use it when they reach the end of your article. Another method would be to use your widgets and add the shortcode into a text widget. That way it will appear on every page your widget displays on and you don’t need to manually add it to every post and page on your site.

Text version of this tutorial

If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.

Check us out on Facebook

Follow us on Twitter

Check out our website for more WordPress Tutorials

#WordPress #WordPressTutorial #WPBeginner



Mazi has nine years of web development experience with the past five years spent honing his skills with WordPress plugins and themes. He's an expert in WooCommerce and is the author of the Simple Sales Tax plugin, a popular sales tax compliance solution for WooCommerce. Brett understands the importance of excellent communication, prides himself on producing high-quality code, and is comfortable working solo or as part of a team.

Leave a Reply

Your email address will not be published.

Back to top button