-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-sitemap.php
42 lines (33 loc) · 1.04 KB
/
page-sitemap.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
33
34
35
36
37
38
39
40
41
42
<?php
/**
*
Template Name: HTML Sitemap Page
*
* The sitemap template file
*
* This template is only used to render an HTML sitemap on a page.
* By default it will display links to all pages and all posts
* Make sure you exclude your "thank you" pages (for conversion tracking)
*
* Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
*
* @package FoundationSix
* @since FoundationSix 1.0.0
*/
get_header(); ?>
<div id="page" role="main">
<article class="main-content">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; // End have_posts() check. ?>
<?php /* Sitemap partial might not work in the Loop...not sure */ ?>
<?php get_template_part('/template-parts/sitemap'); ?>
</article>
<?php get_sidebar(); ?>
</div>
<?php get_footer();