-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-portfolio_cats.php
55 lines (42 loc) · 1.71 KB
/
taxonomy-portfolio_cats.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
50
51
52
53
54
55
<?php
/**
* @package WordPress
* @subpackage Adapt Theme
*/
?>
<?php get_header(); ?>
<article>
<header id="page-heading">
<?php
$term = $wp_query->queried_object;
echo '<h1 class="page-title">'.$term->name.'</h1>';
?>
</header>
<?php if (have_posts()) : ?>
<div class="post full-width clearfix">
<div id="portfolio-description">
<?php echo category_description( ); ?>
</div>
<div id="portfolio-wrap" class="clearfix">
<div class="portfolio-content">
<?php
while (have_posts()) : the_post();
//get portfolio thumbnail
$thumbail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'grid-thumb');
?>
<?php if ( has_post_thumbnail() ) { ?>
<div class="portfolio-item <?php if($count == '4') { echo 'no-margin'; } ?>">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $thumbail[0]; ?>" height="<?php echo $thumbail[2]; ?>" width="<?php echo $thumbail[1]; ?>" alt="<?php echo the_title(); ?>" />
<div class="portfolio-overlay"><h3><?php echo the_title(); ?></h3></div><!-- portfolio-overlay -->
</a>
</div>
<?php } ?>
<?php endwhile; ?>
</div>
</div>
<?php pagination(); ?>
</div>
<!-- /post -->
<?php endif; ?>
</article>
<?php get_footer(); ?>