-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-type.php
49 lines (38 loc) · 1.44 KB
/
taxonomy-type.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
46
47
48
49
<?php
/**
* The template for displaying our Custom Taxonomy "language".
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<header>
<h1 class="page-title">
Types : <?php single_cat_title(); ?>
</h1>
</header><!-- .page-header -->
<ul id="books-list" class="clearfix">
<!-- Here is the loop that displays product matching the taxonomy's term -->
<?php while ( have_posts() ) : the_post(); ?>
<li>
<div class="books-thumbnail">
<!-- Displays the custom thumbnail size "product-thumb" -->
<a href="<?php the_permalink() ?>"><?php echo get_the_post_thumbnail($page->ID, 'books-thumb'); ?></a>
<!-- Displays the product name -->
<h3><?php the_title(); ?></h3>
<strong>Author : </strong><?php echo esc_html( get_post_meta( get_the_ID(), '_names_list', true ) ); ?>
<div class="books-excerpt">
<!-- Displays The Excerpt -->
<?php the_excerpt(); ?>
</div>
<!-- "View Kitten" button that links to the single Kitten post -->
<a href="<?php the_permalink() ?>" rel="bookmark" class="books-link" title="<?php the_title_attribute(); ?>">View book</a>
</div>
</li>
<?php endwhile; ?>
</ul>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>