forked from ArrayHQ/verb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy-categories.php
executable file
·50 lines (40 loc) · 1.52 KB
/
taxonomy-categories.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
<?php
/**
* Archive page for portfolio categories.
*
* @package Verb
* @since Verb 1.0
*/
get_header(); ?>
<div id="content">
<div class="posts">
<div class="post-box-wrap">
<h2 class="archive-title"><?php _e( 'Category', 'verb' ); ?> / <?php single_cat_title(); ?></h2>
<!-- Grab Portfolio Items -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class('post block-post'); ?>>
<div class="post-inside">
<a class="overlay-link" href="<?php the_permalink(); ?>" title=""></a>
<div class="box-wrap">
<!-- grab the featured image -->
<?php if ( has_post_thumbnail() ) { ?>
<a class="featured-image" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'home-image' ); ?></a>
<?php } ?>
<div class="box">
<header>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php echo get_the_term_list( $post->ID, 'categories', '<h3 class="entry-by">' . __( 'Posted In: ', 'verb' ), ', ', '</h3>' ); ?>
</header>
</div><!-- box -->
</div><!-- box wrap -->
</div><!-- image post -->
</article><!-- post-->
<?php endwhile; ?>
<?php endif; ?>
<!-- post navigation -->
<?php verb_page_nav(); ?>
</div><!-- post box wrap -->
</div><!-- posts -->
</div><!-- content -->
<!-- footer -->
<?php get_footer(); ?>