[Snippet] WordPress: Display Random Post Every Day

Today I got a task from my project manager to display one random post for every day.  I need to create a custom WordPresss plugin to show one random post from custom post type.

The tricky part is that the random post should refresh or re-generate every midnight. So we will see different post everyday.

Example of case: Display word of the day Continue reading [Snippet] WordPress: Display Random Post Every Day