WordPress For Non-Techies

How to Display Random Posts in WordPress



Want to add a list of random posts in WordPress? Having a list of random posts helps some of your older content gain exposure with your site’s visitors. In this video, we will show you two different methods to display random posts in WordPress.

–Links–

►partner affiliate link
►written tutorial

–Top Resources–

Use Promo Code WPBVIP
►Best WordPress Contact Form Plugin
►Best WordPress Analytics Plugin
►Best Lead Generation Plugin
►Best WordPress SEO Plugin
►Best Landing Page Builder for WordPress
►Best WordPress Giveaway Plugin

–Related Videos–

►WordPress Tutorial – How to Make a WordPress Website for Beginners
►WordPress Gutenberg Tutorial: How to Easily Work With the Block Editor
►What is SEO and How Does it Work?
►How to Install a WordPress Theme
WordPress has a default recent posts widget that lists your most recent posts in reverse chronological order which is good for your newer posts but your older posts don’t get as much exposure using that widget. For the first method to have random posts displayed you will want to install the Advanced Random Posts Widget plugin:

With the plugin activated you should be able to go to Appearance, Widgets to add a new widget labeled ‘Random Posts’ that you can add where you like. The widget allows you to choose how many to display and what types of posts to show. There are other settings available to the plugin that you can modify that we have not covered in this video.

For the second method, we will show you how to manually add code to your theme’s functions.php file and you can find the code in our written article here:

You will want to copy the entire code from our article and paste it at the bottom of your theme’s functions.php. You can edit this file under Appearance, Editor, and on the right hand side, you would want to select theme functions. Save your changes and now you can add a shortcode where you like on your site to list random posts.

We list the shortcode in our written article as well that you can copy and paste in a post, page, or even in a text widget.

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

source

Mazi

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.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button