-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
30 lines (27 loc) · 926 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
<?php
/***
* This template is for displaying all pages and post types.
* This is the template that displays all pages by default. Please note that is WordPress construct of pages and other 'pages' on your
wp site will use different.
*
* @package Stirbu Landscape
* @since 1.0.0
*/
//display header
get_header();
?>
<?php if(have_posts()) : ?>
<!-- start the loop -->
<?php while(have_posts()) : the_post(); ?>
<?php
//do things -- display content : the function below will pull the content from the template partial.
get_template_part( 'template-parts/content', 'page' );
?>
<?php endwhile; ?>
<!-- end while loop -->
<?php else : ?>
<!-- send to search page / some other general page with search function, tags, categories, archives,etc.. -->
<?php get_template_part('template-parts/content', 'none'); ?>
<?php endif; ?>
<!-- //display footer -->
<?php get_footer(); ?>