forked from arrizalamin/MediumPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
34 lines (21 loc) · 692 Bytes
/
archive.php
File metadata and controls
34 lines (21 loc) · 692 Bytes
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 get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class('index-box') ?> id="post-<?php the_ID(); ?>">
<div class="author-pic">
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')) ?>"><?php echo get_avatar(get_the_author_meta('ID'),50) ?></a>
</div>
<div class="post-title">
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
</div>
<div class="post-content">
<?php the_excerpt(); ?>
</div>
<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
</div>
<?php endwhile; ?>
<div>
<?php else : ?>
<h2>Nothing found</h2>
<?php endif; ?>
<?php get_footer(); ?>