-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
53 lines (22 loc) · 915 Bytes
/
single.php
File metadata and controls
53 lines (22 loc) · 915 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
<?php get_header(); ?>
<div class="container-fluid">
<div class="row">
<?php $image_id = get_post_thumbnail_id(); ?>
<?php $image_attributes = wp_get_attachment_image_src( $image_id, 'full'); ?>
<img src="<?php echo $image_attributes[0]; ?>" width="100%" height="400" class="singleImage">
</div><!-- /.row -->
</div><!-- /.container-fluid -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<?php if (have_posts()): while (have_posts()) : the_post();?>
<h1><?php the_title();?> <small><?php the_date(); ?></small></h1>
<?php the_content(); ?>
<br><br>
<?php wp_list_comments(); ?>
<?php endwhile; else:?>
<?php endif;?>
</div>
</div><!-- /.row -->
</div><!-- /.container -->
<?php get_footer(); ?>