projects
/
WP-Themes
/
staffords.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a484c55
)
adding featured image to single.php
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 4 Dec 2015 16:32:04 +0000
(11:32 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 4 Dec 2015 16:32:04 +0000
(11:32 -0500)
single.php
patch
|
blob
|
history
diff --git
a/single.php
b/single.php
index
dfe1349
..
91aac42
100644
(file)
--- a/
single.php
+++ b/
single.php
@@
-14,6
+14,9
@@
<div class="small-12 columns">
<article id="<?php the_ID()?>" <?php post_class()?>>
<h1><?php the_title();?></h1>
+ <?php if ( has_post_thumbnail() ):?>
+ <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
+ <?php endif; ?>
<?php echo the_content(); ?>
<footer class="entry-meta small-12 medium-6 medium-push-3 center">
<?php $post_categories = wp_get_post_categories( get_the_ID() );