-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
40 lines (33 loc) · 829 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Created by PhpStorm.
* User: Scott
* Date: 20/10/2018
* Time: 11:57 AM
*/
$meta = get_post_meta(get_the_id());
if (array_key_exists('redirect', $meta) && $meta['redirect'][0]) {
header('Location: '.$meta['redirect'][0]);
exit;
}
get_header();
?>
<div class="row">
<?php get_sidebar(); ?>
<div class="col-xs-12 col-md-9 main">
<?php get_breadcrumb(); ?>
<div class="content">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<h1><?php the_title()?></h1>
<?php
the_content();
endwhile;
endif;
?>
</div>
</div>
</div>
<?php
get_footer();