-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
executable file
·42 lines (40 loc) · 1.02 KB
/
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
41
42
<?php get_header(); ?>
<section class="single-page">
<div class="section-title-area">
<h4><?php single_post_title(); ?></h4>
<?php
if ( function_exists('the_subtitle') )
echo "<p>".the_subtitle()."</p>";
?>
</div>
<?php
while (have_posts()) {
the_post();
?>
<div class="page-content">
<div class="image">
<?php
if (has_post_thumbnail()){
?>
<img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="featured image" />
<?php
}
?>
</div>
<div class="content">
<div class="texts">
<?php
the_content();
wp_link_pages();
?>
</div>
</div>
</div>
<?php
if(comments_open() || get_comments_number()){
comments_template();
}
?>
<?php } ?>
</section>
<?php get_footer(); ?>