-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloop-small.php
32 lines (29 loc) · 987 Bytes
/
loop-small.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
<?php if( have_posts()) : ?>
<ul class="posts-list small">
<?php while(have_posts()) : the_post(); ?>
<li id="post-<?php the_ID(); ?>" class="post-columns">
<article id="post-<?php the_ID(); ?>">
<div class="thumb-post">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('small-thumb');
}
?>
</div>
<header class="post-header">
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
</header>
<section class="post-content">
<div class="post-excerpt">
<?php the_content(); ?>
</div>
</section>
<aside class="actions clearfix">
<a href="<?php the_permalink(); ?>"><?php _e('Read more', 'jeo'); ?></a>
</aside>
</article>
</li>
<?php endwhile; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>