List of Random Posts Widget

I wanted to create a home for my new Random Posts Widget — and so I guess this post is it. I created it with the help of AI and I’m pleased with the result. There are some other WordPress plugins that do the same thing but this one uses modern code1.

It’s pretty straightforward, it just picks between one and 10 random posts and displays them on your WordPress site. That’s it.

Download the List of Random Posts plugin, unzip it, upload it to your wp-content/plugins/ directory and then activate it from your WordPress admin -> plugins page. After it’s live, you’ll find it in your collection of widgets which can be added on your site anywhere widgets are supported.

See the sidebar for the plugin in action.

PHP code after the jump:

  1. At least according to ChatGPT[]

Leave a Reply

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