<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nerdaphernalia &#187; WordPress functions</title>
	<atom:link href="http://striderweb.com/nerdaphernalia/tag/wordpress-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://striderweb.com/nerdaphernalia</link>
	<description>"It's All Geek To Me"</description>
	<lastBuildDate>Wed, 21 Dec 2011 18:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Automated Indexes and wp_reset_query()</title>
		<link>http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/</link>
		<comments>http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 20:47:46 +0000</pubDate>
		<dc:creator>Stephen R</dc:creator>
				<category><![CDATA[Webcraft]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress functions]]></category>

		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/</guid>
		<description><![CDATA[I&#8217;ve made a code change to the WordPress indexing system outlined in my previous post. If you had problems with the template, try the new code. What I&#8217;ve done is add the wp_reset_query() function to the end of the loop that gathers the pages. This can avoid conflicts with other code that may be running [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve made a code change to the WordPress indexing system outlined in <a href="/nerdaphernalia/2008/01/automated-indexes/">my previous post</a>.  If you had problems with the template, try the new code.</p>
<p>What I&#8217;ve done is add the <code>wp_reset_query()</code> function to the end of the loop that gathers the pages.  This can avoid conflicts with other code that may be running in your templates.</p>
<p>In general, it&#8217;s good advice to any of you WordPress coders out there who use the <code>query_posts()</code> function, or in general run custom instances of the <code>$wp_query</code> object in plugins or templates.  When you&#8217;re done with whatever you&#8217;re doing, put things back the way you found them by following it up with a call to <code>wp_reset_query()</code>.</p>
<p>(By the way &#8212; it isn&#8217;t terribly well documented yet, but the original discussion leading to the function&#8217;s creation can be found at <a href="http://trac.wordpress.org/ticket/4741">http://trac.wordpress.org/ticket/4741</a>.)</p>
<hr />
© <a href="http://striderweb.com/">Stephen Rider</a> 2008
<p>This article was originally published at <a href="http://striderweb.com/nerdaphernalia">Nerdaphernalia</a>.  <a href="http://planetwordpress.planetozh.com/" rel="nofollow">Planet WordPress</a> is authorized to reproduce WordPress-related entries.  <em>If you're reading this at any other web site, the site owner is stealing copyrighted work.  Please visit the original page:</em></p>

<small><a href="http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/">Permalink to Automated Indexes and wp_reset_query()</a></small>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

