-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
35 lines (18 loc) · 927 Bytes
/
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
33
34
35
<?php get_header(); ?>
<?php $the_query = new WP_Query( 'posts_per_page=1' ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<article class="entry" role="article">
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<p class="secondary meta"><time itemprop="datePublished" content="<?php the_time('c'); ?>" datetime="<?php the_time('c'); ?>"><?php the_time(get_option('date_format')); ?></time></p>
</header>
<div class="entry-content prose">
<?php the_excerpt(); ?>
</div>
<p><a href="<?php the_permalink(); ?>">Read <cite><?php the_title(); ?></cite> in full.</a></p>
</article>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
<?php get_footer(); ?>