-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-home.php
34 lines (34 loc) · 1.16 KB
/
loop-home.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
<?php
if (have_posts()):
while(have_posts()):
the_post();
?>
<div class="post">
<h2><a href="<?php echo get_the_permalink(); ?>" title="<?php echo get_the_title(); ?>"><?php the_title(); ?></a></h2>
<ul class="meta_links">
<li>By <?php the_author_posts_link(); ?></li>
</ul>
<hr>
<ul class="meta_links">
<li><span class="icon icon-calender"></span> <?php the_date(); ?></li>
<li><span class="icon icon-tag"></span> <?php the_category(','); ?></li>
<li><span class="icon icon-comment"></span> <a href="<?php echo get_comments_link(); ?>" title="Comments"><?php comments_number(); ?></a></li>
</ul>
<hr class="space">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
<?php
the_excerpt();
?>
<p><a href="<?php echo get_the_permalink(); ?>" class="read_more_link" title="Read more about <?php echo get_the_title(); ?>">Read More...</a></p>
<hr class="sep">
<hr class="space">
<div class="clearfix"></div>
</div>
<?php
endwhile;
endif;
?>