summaryrefslogtreecommitdiff
blob: 61b4b9c1e821ce1f13fc65b7dcfdd0fb477741f6 (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());
}

?>