Forum Replies Created
-
AuthorPosts
-
September 1, 2016 at 12:31 pm in reply to: How to I add Events page and the various Event views to the Sitemap #1158979
Nicole
Participantyes, html sitemap, not xml sitemap.
This is a Genesis site using the Archive Template, page_archive.php which I have customized to use 2 columns.
how I generate this is to make a new page called sitemap, and choose the archive template from the template dropdown.Here is the template called page_archive.php
<?php
/**
* Genesis Framework.* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/genesis/
*///* Template Name: Archive
//* Remove standard post content output
remove_action( ‘genesis_post_content’, ‘genesis_do_post_content’ );
remove_action( ‘genesis_entry_content’, ‘genesis_do_post_content’ );add_action( ‘genesis_entry_content’, ‘genesis_page_archive_content’ );
add_action( ‘genesis_post_content’, ‘genesis_page_archive_content’ );
/**
* This function outputs sitemap-esque columns displaying all pages,
* categories, authors, monthly archives, and recent posts.
*
* @since 1.6
*/
function genesis_page_archive_content() { ?><div class=”columns-2″>
<?php _e( ‘Pages:’, ‘genesis’ ); ?>
-
<?php wp_list_pages( ‘title_li=’ ); ?>
<?php _e( ‘Categories:’, ‘genesis’ ); ?>
-
<?php wp_list_categories( ‘sort_column=name&title_li=’ ); ?>
<!–
<?php _e( ‘Authors:’, ‘genesis’ ); ?>
-
<?php wp_list_authors( ‘exclude_admin=0&optioncount=1’ ); ?>
–>
</div><div class=”columns-2″>
<?php _e( ‘Monthly:’, ‘genesis’ ); ?>
-
<?php wp_get_archives( ‘type=monthly’ ); ?>
</div>
<?php _e( ‘Posts List:’, ‘genesis’ ); ?>
-
<?php wp_get_archives( ‘type=postbypost&limit=200’ ); ?>
</div>
<?php
}genesis();
-
AuthorPosts
