-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloop-page.php
38 lines (28 loc) · 962 Bytes
/
loop-page.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
36
37
38
<?php
/**
* This template displays the page loop.
*
* @package Natural Lite
* @since Natural Lite 1.0
*/
?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1 class="headline"><?php the_title(); ?></h1>
<?php the_content( esc_html__( 'Read More', 'natural-lite' ) ); ?>
<?php wp_link_pages(array(
'before' => '<p class="page-links"><span class="link-label">' . esc_html__( 'Pages:', 'natural-lite' ) . '</span>',
'after' => '</p>',
'link_before' => '<span>',
'link_after' => '</span>',
'next_or_number' => 'next_and_number',
'nextpagelink' => esc_html__( 'Next', 'natural-lite' ),
'previouspagelink' => esc_html__( 'Previous', 'natural-lite' ),
'pagelink' => '%',
'echo' => 1,
)
); ?>
<div class="clear"></div>
<?php edit_post_link( esc_html__( '(Edit)', 'natural-lite' ), '', '' ); ?>
<?php endwhile; else : ?>
<p><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'natural-lite' ); ?></p>
<?php endif; ?>