Alert! This tip is more fun than useful.
Ever wanted to display a random “Read More…” link on your blog homepage? Here’s some code that’ll help you do just that.
The strings
Copy and paste this code somewhere in the index.php or functions.php file of your theme (but make sure you paste it before the loop):
<?php $more_strings = array("Read More...", "Keep on Reading...", "Wait! There's more...", "Read the rest of the article..."); ?>
You can add as many strings as you want.
Then change the the_content(); bit to this:
the_content($more_strings[rand(0,count($more_strings))]);
That’s it… Have fun!

Blog reactions