Advertisement
ohidul

page.php

May 28th, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.29 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying all pages
  4.  *
  5.  *
  6.  * @link https://codex.wordpress.org/Template_Hierarchy
  7.  *
  8.  * @package WordPress
  9.  * @subpackage YourThemeName
  10.  * @since 1.0
  11.  * @version 1.0
  12.  */
  13.  
  14. get_header(); ?>
  15.  
  16. <div class="wrap">
  17.     <div id="primary" class="content-area">
  18.         <main id="main" class="site-main" role="main">
  19.  
  20.             <?php
  21.             while ( have_posts() ) : the_post(); ?>
  22.  
  23.                 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  24.                     <header class="entry-header">
  25.                         <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  26.                         <?php twentyseventeen_edit_link( get_the_ID() ); ?>
  27.                     </header><!-- .entry-header -->
  28.                     <div class="entry-content">
  29.                         <?php
  30.                             the_content();
  31.  
  32.                             wp_link_pages( array(
  33.                                 'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
  34.                                 'after'  => '</div>',
  35.                             ) );
  36.                         ?>
  37.                     </div><!-- .entry-content -->
  38.                 </article><!-- #post-## -->
  39.  
  40.             <?php
  41.  
  42.                 // If comments are open or we have at least one comment, load up the comment template.
  43.                 if ( comments_open() || get_comments_number() ) :
  44.                     comments_template();
  45.                 endif;
  46.  
  47.             endwhile; // End of the loop.
  48.             ?>
  49.  
  50.         </main><!-- #main -->
  51.     </div><!-- #primary -->
  52. </div><!-- .wrap -->
  53.  
  54. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement