Wordpress homepage change automatically according to day
<p>I've a wordpress site which needs 7 different pages to show(<strong>change the url automatically</strong>) each day according to the current day. Page like www.example.com/monday,   www.example.com/tuesday,  www.example.com/wednesday, etc.</p>

<p>I've tried to change the <strong>index.php</strong> file by adding following code: </p>

<pre><code>dow2post = array(Thursday =&gt; 2816, Friday =&gt; 2815, Saturday =&gt; 2841, Sunday =&gt; 2829, Monday =&gt; 2831, Tuesday =&gt; 2833, Wednesday =&gt; 2837); 

query_posts('page_id='.$dow2post[gmdate('l')]); 
</code></pre>

<p>But it didn't work well. Can someone help to make this possible?</p>