-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·32 lines (32 loc) · 929 Bytes
/
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
<?php get_header(); ?>
<div class="c-wrap">
<div class="c-grid">
<div class="p-contents">
<?php
if( have_posts() ) :
while( have_posts() ) :
the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="post__ttl"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_post_thumbnail(); ?>
<?php the_content(); ?>
<?php $args = array (
'before' => '<div class="page-split">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
);
wp_link_pages( $args );
?>
<?php comments_template(); ?>
</div>
<?php endwhile;
else :
?><h2 class="post__ttl__error"><?php esc_html_e( 'no post data', 'wpbeg' ); ?></h2><?php
endif;
?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>