This is the WordPress page template used for the Site Map page menu item.
Site Map Page
There are four sections in the template page output: Categories, Pages, Posts and Tags. The Categories list is at the top of the page and the Tags List is at the bottom of the page, and the Page and Posts lists are side-by-side in the middle. (The fact they are in alphabetical order is only coincidental.)
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 | <?php /* * Template Name: Sitemap */ get_header(); ?> <div id=“primary”> <div id=“content” role=“main”> <header class=“page-header”> <div class=“post-headline”><h1>Sitemap</h1></div> </header> <h2>Categories</h2> <?php avp_get_terms( “category”, 3 ); ?> <div style=“display:inline; margin: 0px 0px 0px 0px !important;”> <div style=“float:left;margin-right: 0,5em;width:50%;”> <h2>Pages</h2> <?php avp_get_pages( 0, 0 ); ?> </div> <div style=“float:left;margin-right: 0,5em;width:50%;”> <h2>Posts</h2> <?php avp_get_posts(); ?> </div> </div> <br style=“clear: both;” /> <h2>Tags</h2> <?php avp_get_terms( “post_tag”, 4 ); ?> </div><!– #content –> </div><!– #primary –> <?php get_sidebar(); get_footer(); ?> |
Note that the template page calls two functions which are internal to the page itself. These are explained in the following pages.
The short URL of the present article is: http://www.terryobrien.me/1i3n4
Personal Links