-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
45 lines (32 loc) · 1.4 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
42
43
44
45
<?php
/**
* The Template for displaying all single post.
* It's just a copy of single.php modified to show kittney stuff.
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<!-- The kitten name -->
<h1 class="entry-title"><?php the_title(); ?></h1>
<!-- grabbing the custom thumbnail "kittens-single" for this kitten -->
<?php echo get_the_post_thumbnail($page->ID, 'course-single'); ?>
<!-- Output of all our kitten Custom Taxonomies -->
<div class="entry-meta">
<?php the_terms( $post->ID, 'type', '<strong>Type :</strong> ', ', ', ' ' ); ?><br />
<?php the_terms( $post->ID, 'publisher', '<strong>Publisher :</strong> ', ', ', ' ' ); ?><br />
<strong>Author : </strong><?php echo esc_html( get_post_meta( get_the_ID(), '_names_list', true ) ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="course-excerpt">
<!-- Displays The Excerpt -->
<?php the_excerpt(); ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>