Title: front-page.php??
Last modified: August 21, 2016

---

# front-page.php??

 *  [olddocks](https://wordpress.org/support/users/olddocks/)
 * (@olddocks)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/front-pagephp-1/)
 * i am working on a theme, where the theme loads front-page.php ( contains featured
   content and custom widgets). I added this code to front-page.php
 *     ```
       if ( 'posts' == get_option( 'show_on_front' ) ) {
           include( get_home_template() );
       } else {
           include( get_page_template() );
       }
       ```
   
 * After adding this code, when user selects in reading settings
 * latest posts => shows blog posts
    static page => shows static page
 * But here is my question? How to fallback on front-page.php?? User cannot select
   to show front-page.php??

The topic ‘front-page.php??’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [olddocks](https://wordpress.org/support/users/olddocks/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/front-pagephp-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
