Make WordPress Themes

source: newseblog/0.4/page.php

Last change on this file was 296259, checked in by themedropbox, 3 weeks ago

New theme: NewseBlog - 0.1

File size: 1.0 KB
Line 
1<?php
2/**
3 * The template for displaying all pages.
4 *
5 * This is the template that displays all pages by default.
6 * Please note that this is the WordPress construct of pages
7 * and that other 'pages' on your WordPress site may use a
8 * different template.
9 *
10 * @package NewseBlog
11 */
12
13if ( ! defined( 'ABSPATH' ) ) {
14        exit; // Exit if accessed directly.
15}
16
17get_header(); 
18?>
19<!--==================== page section ====================-->
20<main id="content" class="page-section main-section">
21        <!-- Blog Area -->
22        <?php 
23        if ( have_posts() ) :
24                while ( have_posts() ) : the_post();
25
26                        // Output page/post content
27                        the_content();
28
29                        // Pagination inside a post/page
30                        wp_link_pages(array(
31                                'before' => '<div class="link btn-theme">' . esc_html__('Pages:', 'newseblog'),
32                                'after'  => '</div>',
33                        ));
34
35                        // Show comments if enabled
36                        if ( comments_open() || get_comments_number() ) :
37                                comments_template();
38                        endif;
39
40                endwhile;
41        endif;
42        ?>
43</main>
44<?php
45get_footer();
Note: See TracBrowser for help on using the repository browser.