forked from ArrayHQ/verb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-array-portfolio.php
executable file
·59 lines (48 loc) · 1.7 KB
/
archive-array-portfolio.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
56
57
58
59
<?php
/**
* Archive page for portfolio items.
*
* @package Verb
* @since Verb 1.0
*/
get_header(); ?>
<div id="content">
<div class="posts">
<div class="post-box-wrap">
<!-- Grab Portfolio Items -->
<?php
$portfolio_posts = new WP_Query(
array(
'posts_per_page' => 12,
'paged' => get_query_var('paged'),
'post_type' => 'array-portfolio'
)
);
if( $portfolio_posts->have_posts() ) : while( $portfolio_posts->have_posts() ) : $portfolio_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; endif; ?>
<?php wp_reset_postdata(); ?>
<!-- post navigation -->
<?php verb_page_nav(); ?>
</div><!-- post box wrap -->
</div><!-- posts -->
</div><!-- content -->
<!-- footer -->
<?php get_footer(); ?>