Created
April 14, 2012 13:43
-
-
Save billerickson/2384548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 404 Sitemap | |
* @author Bill Erickson | |
*/ | |
function be_404_sitemap() { | |
if( !is_404() ) | |
return; | |
?> | |
<div class="archive-page"> | |
<h4><?php _e( 'Pages:', 'genesis' ); ?></h4> | |
<ul> | |
<?php wp_list_pages( 'title_li=' ); ?> | |
</ul> | |
<h4><?php _e( 'Categories:', 'genesis' ); ?></h4> | |
<ul> | |
<?php wp_list_categories( 'sort_column=name&title_li=' ); ?> | |
</ul> | |
</div><!-- end .archive-page--> | |
<div class="archive-page"> | |
<h4><?php _e( 'Authors:', 'genesis' ); ?></h4> | |
<ul> | |
<?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> | |
</ul> | |
<h4><?php _e( 'Monthly:', 'genesis' ); ?></h4> | |
<ul> | |
<?php wp_get_archives( 'type=monthly' ); ?> | |
</ul> | |
<h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4> | |
<ul> | |
<?php wp_get_archives( 'type=postbypost&limit=100' ); ?> | |
</ul> | |
</div><!-- end .archive-page--> | |
<?php | |
} | |
add_action( 'genesis_loop', 'be_404_sitemap', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment