• 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.