<?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: WordPress Tutorial &#8211; Table of Contents in a Page</title>
	<atom:link href="http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page</link>
	<description>Official Weblog of Christopher Clarke</description>
	<lastBuildDate>Wed, 24 Feb 2010 22:40:22 +1100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daven</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-261</link>
		<dc:creator>Daven</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-261</guid>
		<description>Sir, you saved my backside.  Changing the code like you mention fixes it for pages, but you do have to get a plugin to allow you to assign categories to your pages.  With those two (plugin + your hack) I have now got index pages for a specific sub category.  &lt;br&gt;&lt;br&gt;Oh, the plugin I used so that others can use it is located here:  &lt;a href=&quot;http://www.megaupload.com/?d=CLBDY6U0&quot; rel=&quot;nofollow&quot;&gt;http://www.megaupload.com/?d=CLBDY6U0&lt;/a&gt; &lt;br&gt;&lt;br&gt;I downloaded that, implemented it, created categories, assigned them to pages and then, with that code change:  &lt;a href=&quot;http://davensjournal.com/Updating/beginning-wicca&quot; rel=&quot;nofollow&quot;&gt;http://davensjournal.com/Updating/beginning-wicca&lt;/a&gt;&lt;br&gt;&lt;br&gt;I&#039;m VERY happy now.</description>
		<content:encoded><![CDATA[<p>Sir, you saved my backside.  Changing the code like you mention fixes it for pages, but you do have to get a plugin to allow you to assign categories to your pages.  With those two (plugin + your hack) I have now got index pages for a specific sub category.  </p>
<p>Oh, the plugin I used so that others can use it is located here:  <a href="http://www.megaupload.com/?d=CLBDY6U0" rel="nofollow">http://www.megaupload.com/?d=CLBDY6U0</a> </p>
<p>I downloaded that, implemented it, created categories, assigned them to pages and then, with that code change:  <a href="http://davensjournal.com/Updating/beginning-wicca" rel="nofollow">http://davensjournal.com/Updating/beginning-wicca</a></p>
<p>I&#39;m VERY happy now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Clarke</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-260</link>
		<dc:creator>Christopher Clarke</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-260</guid>
		<description>The plugin and table of contents described in this tutorial doesn&#039;t support pages.&lt;br&gt;&lt;br&gt;I haven&#039;t tested but I think replacing $toc = get_post... with $toc = get_pages(&#039;child_of=&#039;.$post-&gt;ID.&#039;&amp;sort_column=post_date&amp;sort_order=ASC&#039;); should do the trick. Of course, replace &#039;.$post-&gt;ID.&#039; with the ID of the page that is the parent of the chapters you want to list if it isn&#039;t the page that holds the parent (even so you might still need to replace it, I don&#039;t know).&lt;br&gt;&lt;br&gt;Good luck.</description>
		<content:encoded><![CDATA[<p>The plugin and table of contents described in this tutorial doesn&#39;t support pages.</p>
<p>I haven&#39;t tested but I think replacing $toc = get_post&#8230; with $toc = get_pages(&#39;child_of=&#39;.$post-&gt;ID.&#39;&#038;sort_column=post_date&#038;sort_order=ASC&#39;); should do the trick. Of course, replace &#39;.$post-&gt;ID.&#39; with the ID of the page that is the parent of the chapters you want to list if it isn&#39;t the page that holds the parent (even so you might still need to replace it, I don&#39;t know).</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daven</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-259</link>
		<dc:creator>Daven</dc:creator>
		<pubDate>Wed, 28 Oct 2009 09:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-259</guid>
		<description>Okay, I finally got a plugin that allows me to assign categories to my pages, and while the plugin is working for POSTS, it&#039;s not working for pages.  I have used the code displayed exactly the way it is shown here (with the only modification being that I replaced OL with UL for asthetics) and it&#039;s not working.&lt;br&gt;&lt;br&gt;Is there something I&#039;m doing wrong?  This is a site I&#039;m transferring into Wordpress, so it can blow up and I won&#039;t be TOO mad...</description>
		<content:encoded><![CDATA[<p>Okay, I finally got a plugin that allows me to assign categories to my pages, and while the plugin is working for POSTS, it&#39;s not working for pages.  I have used the code displayed exactly the way it is shown here (with the only modification being that I replaced OL with UL for asthetics) and it&#39;s not working.</p>
<p>Is there something I&#39;m doing wrong?  This is a site I&#39;m transferring into Wordpress, so it can blow up and I won&#39;t be TOO mad&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-196</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Thu, 01 Oct 2009 23:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-196</guid>
		<description>Fixed it, it ended up being a problem with the actual database itself. A wipe of the database and a re-installation solved the problem, and both the first and second code snippets work perfectly now. 

I have no idea what could have caused the database to screw itself up so royally, but that was the problem, not your code! Sorry for the mix-up, and thanks a lot for the help!</description>
		<content:encoded><![CDATA[<p>Fixed it, it ended up being a problem with the actual database itself. A wipe of the database and a re-installation solved the problem, and both the first and second code snippets work perfectly now. </p>
<p>I have no idea what could have caused the database to screw itself up so royally, but that was the problem, not your code! Sorry for the mix-up, and thanks a lot for the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Clarke</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-190</link>
		<dc:creator>Chris Clarke</dc:creator>
		<pubDate>Wed, 30 Sep 2009 04:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-190</guid>
		<description>That&#039;s weird. I tried it just now and it worked as expected. I know pastebin tends to add #&#039;s when you copy and paste sometimes, did you remove those?

I&#039;m not sure about this WordPress category issue but I believe I had a similar issue when making the sidebar widget table of contents. No matter what I set the category to it was always getting the wrong posts. The solution was the same as the solution I used in the new code - using the database table field names directly instead of relying on WordPress&#039;s template functions for the title and permalink.</description>
		<content:encoded><![CDATA[<p>That&#8217;s weird. I tried it just now and it worked as expected. I know pastebin tends to add #&#8217;s when you copy and paste sometimes, did you remove those?</p>
<p>I&#8217;m not sure about this WordPress category issue but I believe I had a similar issue when making the sidebar widget table of contents. No matter what I set the category to it was always getting the wrong posts. The solution was the same as the solution I used in the new code &#8211; using the database table field names directly instead of relying on WordPress&#8217;s template functions for the title and permalink.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-188</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Tue, 29 Sep 2009 13:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-188</guid>
		<description>My fix was to replace category() with category_name(). 

Your new code results in a blank page (my server seems to have turned off PHP errors). But the initial problem seems to be my installation. It seems to think &lt;i&gt;every&lt;/i&gt; post is in category 4 (even when navigating in the WP control panel).</description>
		<content:encoded><![CDATA[<p>My fix was to replace category() with category_name(). </p>
<p>Your new code results in a blank page (my server seems to have turned off PHP errors). But the initial problem seems to be my installation. It seems to think <i>every</i> post is in category 4 (even when navigating in the WP control panel).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Clarke</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-187</link>
		<dc:creator>Chris Clarke</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-187</guid>
		<description>My apologies, WordPress seems to have killed my comment.

Code:
http://php.pastebin.com/f9be2b8e</description>
		<content:encoded><![CDATA[<p>My apologies, WordPress seems to have killed my comment.</p>
<p>Code:<br />
<a href="http://php.pastebin.com/f9be2b8e" rel="nofollow">http://php.pastebin.com/f9be2b8e</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Clarke</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-186</link>
		<dc:creator>Chris Clarke</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-186</guid>
		<description>I&#039;m sorry for the late reply. WordPress marked the message as spam due the number of links. Looking at your site, it appears you fixed it, but I&#039;ll go over a solution here.

Try this (I haven&#039;t tried it, but I think it should work):

http://php.pastebin.com/f53118d4e

Good luck. If this works, I&#039;ll replace the code in the tutorial with it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry for the late reply. WordPress marked the message as spam due the number of links. Looking at your site, it appears you fixed it, but I&#8217;ll go over a solution here.</p>
<p>Try this (I haven&#8217;t tried it, but I think it should work):</p>
<p><a href="http://php.pastebin.com/f53118d4e" rel="nofollow">http://php.pastebin.com/f53118d4e</a></p>
<p>Good luck. If this works, I&#8217;ll replace the code in the tutorial with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-182</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Fri, 25 Sep 2009 20:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-182</guid>
		<description>I&#039;m sure it&#039;s something simple like, &quot;oh, you&#039;ve got an extra apostrophe&quot; or something, but it seems to be displaying every post, instead of just the posts from category ID &quot;4&quot;. 

http://heiwuya.net/serial-fiction/the-crow/table-of-contents/ Is the page in question, and I&#039;ve got screenshots of all the applicable code (I hope)

http://img59.imageshack.us/img59/3285/editcategory.png
http://img185.imageshack.us/img185/4083/edittheme.png
http://img32.imageshack.us/img32/897/tableofcontentspage.png

I also double-checked it against the WP Codex, and tried hard-coding the value for the category in there. It seems fine to me, and I tried copy &amp; pasting the example from the Codex, to no avail.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure it&#8217;s something simple like, &#8220;oh, you&#8217;ve got an extra apostrophe&#8221; or something, but it seems to be displaying every post, instead of just the posts from category ID &#8220;4&#8243;. </p>
<p><a href="http://heiwuya.net/serial-fiction/the-crow/table-of-contents/" rel="nofollow">http://heiwuya.net/serial-fiction/the-crow/table-of-contents/</a> Is the page in question, and I&#8217;ve got screenshots of all the applicable code (I hope)</p>
<p><a href="http://img59.imageshack.us/img59/3285/editcategory.png" rel="nofollow">http://img59.imageshack.us/img59/3285/editcategory.png</a><br />
<a href="http://img185.imageshack.us/img185/4083/edittheme.png" rel="nofollow">http://img185.imageshack.us/img185/4083/edittheme.png</a><br />
<a href="http://img32.imageshack.us/img32/897/tableofcontentspage.png" rel="nofollow">http://img32.imageshack.us/img32/897/tableofcontentspage.png</a></p>
<p>I also double-checked it against the WP Codex, and tried hard-coding the value for the category in there. It seems fine to me, and I tried copy &amp; pasting the example from the Codex, to no avail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Clarke</title>
		<link>http://sorrowfulunfounded.com/tutorials/wordpress/table-of-contents-page/comment-page-1/#comment-179</link>
		<dc:creator>Chris Clarke</dc:creator>
		<pubDate>Fri, 25 Sep 2009 05:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://sorrowfulunfounded.com/?p=482#comment-179</guid>
		<description>I&#039;m glad. Let me know if you get it work, please.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad. Let me know if you get it work, please.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
