I basically have a site where I have several different template headers that I want to load via
The basic idea is when someone first visits the site, they should see a random header, and every subsequent visit, see a different random header until they have seen all headers, which in that case, it will be random.
I've tried before, but with this code, it will only load one header, and continually load only that header on every refresh.
<?php $order = array(1, 2, 3); shuffle($order); get_template_part( 'headers/feat', array_shift($order) ); ?>
I know I most likely need to be using
SESSIONS, or something cookie related. Can someone point me in the right direction? Thanks!