The following examples illustrate some common changes:
Remove the Authors List
To remove the authors list, find the following code and delete it:
<h4><?php _e( ‘Authors:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_list_authors( ‘exclude_admin=0&optioncount=1’ ); ?>
</ul>
Remove the Monthly List
To remove the monthly list, find the following code and delete it:
<h4><?php _e( ‘Monthly:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>
Change the Number of Recent Posts
To change the number of recent posts, find the following code and change limit=100; for example, change 100 to 50 to show only 50 recent posts in the site map:
<?php wp_get_archives( ‘type=postbypost&limit=100’ ); ?>
Change the List Title
You can change any of the list titles.
For example, to change the Monthly list title to Posts by Month, find the following code:
<h4><?php _e( ‘Monthly:’, ‘genesis’ ); ?></h4>
and change it to:
<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>
Add Custom HTML Content
You can add custom HTML content anywhere in the page.
For example, if you want to add custom text AFTER the Posts by Month list title, find the following code:
<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>
and change it to:
<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>
<p>The following is a list of my monthly posts:</p>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>
Testing and Viewing the Sitemap
Finally, to view or link to the sitemap page, enter the permalink you created for the sitemap; for example, http://mysite.com/sitemap. Or, you can link the sitemap to your menu. Click here to learn how to link pages to a WordPress menu.
Stephen says
This article was just what I needed. Excellent instructions. My site is all pages, so not only did you help me make the sitemap, but I was also able to remove the categories, etc.
Suggestion: The only other thing this article could use is a snippet for excluding pages like “thanks for contacting us” pages, etc. Now I have to go find that code somewhere else.
If I find it, I hope their instructions are as helpful as yours.
Pat Fortino says
If you want to exclude pages, see this: http://codex.wordpress.org/Function_Reference/wp_list_pages
For example, where page id equals 10.