So away from my normal post of the media I’ve been creating and to a little something that I couldn’t find and took way too long to do something very simple. I’ve been working on a site that was almost done and they wished to have a Sale page so when anything goes on sale it automatically gets put onto the page, I’m only slightly editing a woo theme so used woo commerce which to be fair I’m not too familiar with but this is something I’ve seen on many site so didn’t hesitate at the request. I could be wrong in the best way to do this but the way I have found it possible and easy to do was

  1. head to my themes folder and find the page.php file
  2. copy this and rename page-sale.php
  3. add the custom-page template code to the top of the page
  4. <?php
    /*
    Template Name: sale
    */
    ?>

  5. get to the site’s dashboard and create a new page
  6. title it sale and in the text editor side of the content type 

    [sale_products]

  7. change the template to sale
  8. publish and done in a minute flat