random psot - How to display a Random 🔀 WordPress Post inside a Page

How to display a Random 🔀 WordPress Post inside a Page

Here is a handy snippet that displays a random post, so each time a user refreshes the page a different post will appear. The snippet should be saved as a PHP template for pages and a page has to use it. Step 1. Create a new file random.php inside your active theme folder and put … Read more