-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite-map.php
More file actions
47 lines (31 loc) · 832 Bytes
/
site-map.php
File metadata and controls
47 lines (31 loc) · 832 Bytes
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
43
44
45
46
47
<?php
/*
Template Name: Site Map
*/
/* This takes the 404 page and creates a site map page for NCEM */
/** Remove default loop **/
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'genesis_404' );
/**
* This function outputs a 404 "Not Found" error message
*
* @since 1.6
*/
function genesis_404() { ?>
<div class="post hentry">
<h1 class="entry-title">Site Map</h1>
<div class="sitemap-entry-content">
<div class="archive-page">
<!--<h4><?php _e( 'Pages:', 'genesis' ); ?></h4>-->
<ul>
<?php wp_list_pages( 'title_li=' ); ?>
</ul>
</div><!-- end .archive-page-->
<div class="archive-page">
<!-- removed content from here -->
</div><!-- end .archive-page-->
</div><!-- end .entry-content -->
</div><!-- end .postclass -->
<?php
}
genesis();