WordPress.org

Forums

How to pick a rotating file (or random) (2 posts)

  1. wyclef
    Member
    Posted 6 years ago #

    how could I change <?php include(TEMPLATEPATH.'/banner.php'); ?> or the contents of that file to have rotating or random content? I'm not interested in just some random image thing... the random content has more detail and structure to it.

  2. wyclef
    Member
    Posted 6 years ago #

    I hooked this up for random, but am wondering how I could adjust it to only rotate weekly.

    <?
    		$sl = rand(1,4);
    		include (TEMPLATEPATH.'/banner_'.$sl.'.php');
    		?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.