-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·41 lines (29 loc) · 1.04 KB
/
single.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
<?php get_header(); ?>
<!-- main content -->
<div class="main content band">
<div class="primary content container">
<div class="ten columns">
<!-- Start the Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<h4><a href="<?php the_permalink() ?>"><?php the_category(); ?></a></h4>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php the_author_posts_link() ?> <?php the_time('F jS, Y') ?>
<a href="<?php the_permalink() ?>">
<?php if ( function_exists('has_post_thumbnail') &&
has_post_thumbnail($post->ID)) {
$thumbnail =
wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full );
?>
<img src="<?php echo $thumbnail[0]; ?>"alt="" />
<?php }else{ ?>
<?php } ?>
</a><!-- end permalink -->
<?php the_content(); ?>
</article>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div><!-- end ten columns -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>