-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
32 lines (25 loc) · 1.03 KB
/
index.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 get_header(); ?>
<main>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_post_thumbnail() ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p class="meta">On <?php the_date(); ?> by <?php the_author(); ?></p>
<a href="<?php the_permalink(); ?>" <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
Read more...
</a>
<?php wp_link_pages(array(
'before' => '<div class="page-link-next-prev">',
'after' => '</div>',
'next_or_number' => 'next',
'previouspagelink' => __('Previous', 'wordpress-starter-theme'),
'nextpagelink' => __('Next', 'wordpress-starter-theme'))
); ?>
<?php endwhile; ?>
<?php echo paginate_links(); ?>
<?php else : ?>
nothing to show
<?php endif; ?>
</main>
<?php get_footer(); ?>