/
taxonomy-client.php
38 lines (36 loc) · 1017 Bytes
/
taxonomy-client.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
<?php get_header(); ?>
<section id="works" class="content-area">
<div class="inner">
<?php if ( have_posts() ) : ?>
<ul class="posts">
<?php
$i = 1;
$array = array(1,8);
while ( have_posts() ) : the_post(); ?>
<?php
$image_size = array('width' => 450, 'height' => 290);
?>
<li >
<a href="<?php echo get_permalink(); ?>" class="work-item overlay-btn-white">
<img src="<?php echo get_post_thumbnail_src($image_size); ?>" alt="<?php echo get_the_title(); ?>"/>
<figcaption>
<div>
<h2><?php echo get_the_title(); ?></h2>
<p><?php echo get_excerpt(50); ?></p>
<span class="icon icon-right"></span>
</div>
</figcaption>
</a>
</li>
<?php
$i++;
endwhile; // end of the loop. ?>
</ul>
<?php else: ?>
<div class="not-found">
<h3 class="title"><?php _e("No posts found", THEME_NAME); ?></h3>
</div>
<?php endif; ?>
</div>
</section>
<?php get_footer(); ?>