Wordpress Plugins
WordPress Code: Add a Fortune Cookie Message to WordPress Posts
In the past few months, we have covered a bunch of scripts that add much needed functionality to WordPress. If you know PHP, you can write short and clever functions to add fun features to WordPress. For example, with a few lines of code, you can have your site display random messages under your posts. Here is the code you need to pull it off.

Just add this to your functions.php file, and you are set. This code uses an array to display new messages on your site. You can replace the array with an external JSON file or an ACF repeater, so new ones can be added without code. You can use transient caching to improve performance and fresh once per hour instead of doing it on every load.












