Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying all pages
- *
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPress
- * @subpackage YourThemeName
- * @since 1.0
- * @version 1.0
- */
- get_header(); ?>
- <div class="wrap">
- <div id="primary" class="content-area">
- <main id="main" class="site-main" role="main">
- <?php
- while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- <?php twentyseventeen_edit_link( get_the_ID() ); ?>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <?php
- the_content();
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- </article><!-- #post-## -->
- <?php
- // If comments are open or we have at least one comment, load up the comment template.
- if ( comments_open() || get_comments_number() ) :
- comments_template();
- endif;
- endwhile; // End of the loop.
- ?>
- </main><!-- #main -->
- </div><!-- #primary -->
- </div><!-- .wrap -->
- <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement