🛠️ Divi Builder drag & drop page builder for WP
There are plenty of plugins that add fun features for your visitors. Admins can also use simple functions to add functionality to their dashboard. For example, it is possible to write a simple function to rotate a bunch of jokes depending on the time of the year. You can use GPT, Gemini or Claude to generate hundreds of jokes and rotate them with this code.
The idea here is simple: your joke array holds your jokes. You use the date function to get the numeric day of the year. This function syncs with time to calculate which joke to show. It is purely PHP, so no external APIs are needed.
More WordPress reading: