在wordpress中根据季节交换首页

I have a client that has a tourism site (wordpress). They want to have a different homepage featured depending on if it is winter or summer. I would ideally like to control this by date automatically by creating 2 pages. Is there a way to specify the frontpage in wp-config based on JS or php date? They will need to have the option of swapping to the alternate season page if they are planning ahead. Not worried about other pages, just setting the frontpage to default based on date. ie. Nov 1 Summer changes to winter homepage. May 1 winter page changes to summer.

Create the two pages you want on Wordpress Pages... Let's call them

Page Winter (pageid = 1) and Page Summer (pageid = 2)

Then create a new Page Template in your child them and add this on it:

<?php
/**
 * Template Name: My Seasons Page
 */
 ?>

$currentMonth = date("n");

if ( $currentMonth > 11 && $currentMonth < 3 ) {
//Winter
   $recent = new WP_Query("page_id=1"); while($recent->have_posts()) : 
      $recent->the_post();
      echo '<h3>' . the_title() . '</h3>';
      the_content(); 
   endwhile;

} else {
//Sprint - Summer - Autumn
   $recent = new WP_Query("page_id=2"); while($recent->have_posts()) : 
      $recent->the_post();
      echo '<h3>' . the_title() . '</h3>';
      the_content(); 
   endwhile;
}

Then create a new Wordpress page called "Home page" and choose the template you just created. Set this page as your real home page.