-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
37 lines (35 loc) · 915 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
<?php
/**
* The template for displaying Page.
*
* @package ThemeIsle
*/
get_header();
?>
<div class="wrap">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
$featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<article id="single">
<h1><?php the_title(); ?></h1>
<?php
if ( $featured_image != NULL ) { ?>
<div class="single-featured-image">
<img src="<?php echo $featured_image[0]; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
</div><!--/.single-featured-image-->
<?php }
?>
<div class="single-entry cf">
<?php the_content(); ?>
</div><!--/.single-entry-->
<?php comments_template(); ?>
</article><!--/#single-->
<?php }
} else {
echo '<p>No posts found.</p>';
}
?>
</div><!--/.wrap-->
<?php get_footer(); ?>