summaryrefslogtreecommitdiff
blob: 9426db97e68755c5dd7567928c99d79fc194c7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

if (is_numeric(get_the_ID())){

    if (get_option('show_on_front') == 'page' && get_option('page_on_front') == get_the_ID()) {
        require_once('template.php');
    } else {
        header("Location: ".home_url()."/#page/".get_the_ID()); // redirect to page
    }
} else {
    header("Location: ".home_url());
}

?>