<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Thesis XHTML Sitemap</title>
	<atom:link href="http://garyjones.co.uk/blog/thesis-xhtml-sitemap/feed/" rel="self" type="application/rss+xml" />
	<link>http://garyjones.co.uk/blog/thesis-xhtml-sitemap/</link>
	<description>Personal playground for a Web Developer</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:03:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff Garrett</title>
		<link>http://garyjones.co.uk/blog/thesis-xhtml-sitemap/comment-page-1/#comment-1925</link>
		<dc:creator>Jeff Garrett</dc:creator>
		<pubDate>Mon, 04 May 2009 22:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://garyjones.co.uk/?p=1035#comment-1925</guid>
		<description>Hi Gary,
Thanks for sharing your sitemap tip. This worked great for me although I tweaked it a bit so I could use it with the default template vs. the custom template. Here&#039;s a copy of my code:
&lt;code&gt;
function xhtml_sitemap() {
if (is_page(&#039;sitemap&#039;) &#124;&#124; is_page(&#039;insertyourpageidhere&#039;)) { ?&gt;
&lt;h3&gt;Pages:&lt;/h3&gt;
  &lt;ul&gt;
	&lt;?php wp_list_pages(&#039;title_li=&#039;); ?&gt;
  &lt;/ul&gt;
&lt;h3&gt;Blog Posts:&lt;/h3&gt;
  &lt;ul&gt;
	&lt;?php $archive_query = new WP_Query(&#039;showposts=1000&#039;);
		while ($archive_query-&gt;have_posts()) : $archive_query-&gt;the_post(); ?&gt;
	&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; (&lt;?php comments_number(&#039;0&#039;, &#039;1&#039;, &#039;%&#039;); ?&gt;)&lt;/li&gt;
	&lt;?php endwhile; ?&gt;
  &lt;/ul&gt;
&lt;h3&gt;Archive Pages by Month:&lt;/h3&gt;
  &lt;ul&gt;
	&lt;?php wp_get_archives(&#039;type=monthly&#039;); ?&gt;
  &lt;/ul&gt;
&lt;h3&gt;Archive Pages by Category:&lt;/h3&gt;
  &lt;ul&gt;
	&lt;?php wp_list_categories(&#039;title_li=0&#039;); ?&gt;
  &lt;/ul&gt;
&lt;?php } }
add_action(&#039;thesis_hook_after_post&#039;, &#039;xhtml_sitemap&#039;);
&lt;/code&gt;
Thanks again!
Jeff</description>
		<content:encoded><![CDATA[<p>Hi Gary,<br />
Thanks for sharing your sitemap tip. This worked great for me although I tweaked it a bit so I could use it with the default template vs. the custom template. Here&#8217;s a copy of my code:<br />
<code><br />
function xhtml_sitemap() {<br />
if (is_page('sitemap') || is_page('insertyourpageidhere')) { ?&gt;<br />
&lt;h3&gt;Pages:&lt;/h3&gt;<br />
  &lt;ul&gt;<br />
	&lt;?php wp_list_pages('title_li='); ?&gt;<br />
  &lt;/ul&gt;<br />
&lt;h3&gt;Blog Posts:&lt;/h3&gt;<br />
  &lt;ul&gt;<br />
	&lt;?php $archive_query = new WP_Query('showposts=1000');<br />
		while ($archive_query-&gt;have_posts()) : $archive_query-&gt;the_post(); ?&gt;<br />
	&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; (&lt;?php comments_number('0', '1', '%'); ?&gt;)&lt;/li&gt;<br />
	&lt;?php endwhile; ?&gt;<br />
  &lt;/ul&gt;<br />
&lt;h3&gt;Archive Pages by Month:&lt;/h3&gt;<br />
  &lt;ul&gt;<br />
	&lt;?php wp_get_archives('type=monthly'); ?&gt;<br />
  &lt;/ul&gt;<br />
&lt;h3&gt;Archive Pages by Category:&lt;/h3&gt;<br />
  &lt;ul&gt;<br />
	&lt;?php wp_list_categories('title_li=0'); ?&gt;<br />
  &lt;/ul&gt;<br />
&lt;?php } }<br />
add_action('thesis_hook_after_post', 'xhtml_sitemap');<br />
</code><br />
Thanks again!<br />
Jeff</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 112/126 queries in 0.062 seconds using disk
Content Delivery Network via s.garyjones.co.uk

Served from: server13.xenserve.com @ 2010-03-11 21:05:10 -->