-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (26 loc) · 778 Bytes
/
Copy pathindex.php
File metadata and controls
35 lines (26 loc) · 778 Bytes
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
<?php get_header(); ?>
<div class="container">
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<div class="row">
<div class="col-xs-12 col-md-4">
<h1><?php the_title(); ?></h1>
</div>
<div class="w-100"></div>
<div class="col-xs-12 col-md-4">
<div><?php the_content(); ?></div>
</div>
<div class="w-100"></div>
<?php if (has_post_thumbnail()):?>
<div class="col-xs-12 col-md-4">
<?php the_post_thumbnail('medium', ['class' => 'post-img', 'alt'=>'thumbnail post image']); ?>
</div>
<?php else: ?>
<div class="col-xs-12">
<?php endif; ?>
</div> <!-- end the col div -->
</div> <!-- end the row div -->
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>