-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
44 lines (32 loc) Β· 1.11 KB
/
index.php
File metadata and controls
44 lines (32 loc) Β· 1.11 KB
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
<?php get_header(); ?>
<div id="content" role="main" class="post-list">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article class="post">
<?php the_post_thumbnail('large'); ?>
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h1>
<div class="post-meta">
<?php the_time('m.d.Y'); ?> <span class="tags"><?php echo get_the_tag_list( '| #', ' #' ); ?></span>
</div>
<div class="the-content">
<?php the_content( 'Continue...' );
?>
</div>
</article>
<?php endwhile; ?>
<!-- pagintation -->
<div id="pagination" class="clearfix">
<div class="past-page"><?php previous_posts_link( 'newer' ); ?></div>
<div class="next-page"><?php next_posts_link( 'older' ); ?></div>
</div><!-- pagination -->
<?php else : ?>
<article class="post error">
<h1 class="404">Nothing has been posted like that yet</h1>
</article>
<?php endif; ?>
</div><!-- #content .site-content -->
<?php get_footer(); ?>