-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·36 lines (32 loc) · 1.21 KB
/
index.php
File metadata and controls
executable file
·36 lines (32 loc) · 1.21 KB
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
<?php get_header(); ?>
<div class="row">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
/*
if(is_search()) {
get_template_part( 'search' );
break;
}
*/
if(is_front_page()) {
get_template_part( 'home' );
break;
}
?>
<div id="page-content-wrapper">
<?php if (get_post_type() == 'page') the_content(); ?>
<?php if (get_post_type() == 'post') { ?>
<div class="post-title"><?php the_title(); ?> </div>
<div class="post-date">Date of Publication: <?php echo get_the_date('Y-m-d'); ?> </div>
<div class="post-content"><?php the_content(); ?> </div>
<?php
} ?>
</div>
<?php
}
} // end if
?>
</div>
<?php get_footer(); ?>