-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-projects.php
More file actions
26 lines (23 loc) · 921 Bytes
/
content-projects.php
File metadata and controls
26 lines (23 loc) · 921 Bytes
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
<?php $dsh_featured_value = get_post_meta($post->ID, 'dsh_featured', true); ?>
<div class="item item-<?php the_ID(); ?> <?php if($dsh_featured_value != '') {echo "featured";} ?> <?php $terms = get_the_terms( $post->ID , 'project-type' );
if($terms) {
foreach( $terms as $term ) {
echo $term->slug;
echo " ";
}
}
?>span4">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" class="thumbnail">
<?php echo get_the_post_thumbnail( $post_id, "project-thumb"); ?>
<div class="caption">
<h4 class="item-title"><?php the_title(); ?></h4>
<div class="item-client">
<?php
$terms_as_text = strip_tags( get_the_term_list( $post->ID, 'client', '', ', ', '' ) );
echo $terms_as_text;
?>
<span class="project-year badge pull-right"><?php the_date('Y'); ?></span>
</div>
</div>
</a>
</div>