forked from InfoAmazonia/infoamazonia-wptheme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loop-projects.php
21 lines (21 loc) · 883 Bytes
/
loop-projects.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<ul class="list-projects clearfix">
<?php while(have_posts()) : the_post(); ?>
<li id="post-<?php the_ID(); ?>" <?php post_class('post-item six columns'); ?>>
<article class="clearfix">
<?php if(has_post_thumbnail()) {
echo '<a href="' . get_permalink() .'" title="' . get_the_title() . '">' . get_the_post_thumbnail($post->ID, 'project-thumb') . '</a>';
} ?>
<header class="post-header">
<a href="<?php the_field('project_url'); ?>" title="<?php the_title(); ?>" rel="external" target="_blank" class="button"><?php _e('View this project', 'infoamazonia'); ?></a>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</header>
<section>
<?php the_excerpt(); ?>
</section>
</article>
</li>
<?php endwhile; ?>
</ul>
<div class="twelve columns">
<?php if(function_exists('wp_paginate')) wp_paginate(); ?>
</div>