<?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: Hack: WordPress function &#8216;wp_list_pages&#8217; to output page description (or other custom fields) in your page lists</title>
	<atom:link href="http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html</link>
	<description>Shantanu's Gadgets, Gizmos, Hacks, Tips, Tricks, Technology...and your kitchen sink</description>
	<lastBuildDate>Mon, 15 Mar 2010 17:48:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Manuel</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-18390</link>
		<dc:creator>Manuel</dc:creator>
		<pubDate>Mon, 15 Mar 2010 17:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-18390</guid>
		<description>Hey! thank you very much!</description>
		<content:encoded><![CDATA[<p>Hey! thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graveto</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17993</link>
		<dc:creator>Graveto</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17993</guid>
		<description>Hi,

first of all I want to say this is a very usefull thing to know. Thank you!
But...I&#039;ve got a problem with the hack because I want to use it in my header.php to generate a dropdown-navigation which includes small discriptions.
Everything works fine. The discription appears where it should. 
They are the smaller words are under the main menue points:

http://annettes.alfahosting.org/MLI/

But when I visit a subpage the discription disappears. 

Why does this happen?
Has anyone a idea to solve this? 

Thank you...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>first of all I want to say this is a very usefull thing to know. Thank you!<br />
But&#8230;I&#8217;ve got a problem with the hack because I want to use it in my header.php to generate a dropdown-navigation which includes small discriptions.<br />
Everything works fine. The discription appears where it should.<br />
They are the smaller words are under the main menue points:</p>
<p><a href="http://annettes.alfahosting.org/MLI/" rel="nofollow">http://annettes.alfahosting.org/MLI/</a></p>
<p>But when I visit a subpage the discription disappears. </p>
<p>Why does this happen?<br />
Has anyone a idea to solve this? </p>
<p>Thank you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Kristian</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17426</link>
		<dc:creator>Jon Kristian</dc:creator>
		<pubDate>Fri, 30 Oct 2009 17:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17426</guid>
		<description>Here&#039;s my take on this: http://jonkristian.no/2009/10/a-smarter-menu-for-wordpress/ Enjoy:)</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my take on this: <a href="http://jonkristian.no/2009/10/a-smarter-menu-for-wordpress/" rel="nofollow">http://jonkristian.no/2009/10/a-smarter-menu-for-wordpress/</a> Enjoy:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Kristian &#187; Menu Subtitles</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17422</link>
		<dc:creator>Jon Kristian &#187; Menu Subtitles</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-17422</guid>
		<description>[...] to wp_list_pages and found a couple of posts on how to achieve this. In the first post I found by Shantanu one had to hack classes.php, a WordPress core file, and the second one by Theme Shaper was lacking [...]</description>
		<content:encoded><![CDATA[<p>[...] to wp_list_pages and found a couple of posts on how to achieve this. In the first post I found by Shantanu one had to hack classes.php, a WordPress core file, and the second one by Theme Shaper was lacking [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Goel</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16400</link>
		<dc:creator>Shantanu Goel</dc:creator>
		<pubDate>Tue, 30 Jun 2009 06:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16400</guid>
		<description>@Shane: Search for &quot;custom fields&quot;. You can use custom fields for what you want..</description>
		<content:encoded><![CDATA[<p>@Shane: Search for &#8220;custom fields&#8221;. You can use custom fields for what you want..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16362</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 29 Jun 2009 11:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16362</guid>
		<description>Hi, just exactly what i was looking for. this works great. The only thing i have changed so far is amend the output with span&#039;s with a class name for full CSS control. Could anyone please provide me with an example of how i can extend this in case i wanted to have more than one description ? some kind of loop ? my PHP is not very good :( 

any help would be great.</description>
		<content:encoded><![CDATA[<p>Hi, just exactly what i was looking for. this works great. The only thing i have changed so far is amend the output with span&#8217;s with a class name for full CSS control. Could anyone please provide me with an example of how i can extend this in case i wanted to have more than one description ? some kind of loop ? my PHP is not very good <img src='http://tech.shantanugoel.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
<p>any help would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nurfsoods</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16311</link>
		<dc:creator>Nurfsoods</dc:creator>
		<pubDate>Sun, 28 Jun 2009 08:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-16311</guid>
		<description>Для Вас сайт музыкальных альбомов,музыкальные сайты ucoz,шаблон +ради музыкального сайта,радио хит.</description>
		<content:encoded><![CDATA[<p>Для Вас сайт музыкальных альбомов,музыкальные сайты ucoz,шаблон +ради музыкального сайта,радио хит.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Sefton</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-11509</link>
		<dc:creator>Jim Sefton</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-11509</guid>
		<description>Hi,

Can I use the field I grab from META to sort the pages? In my case the meta tag is price and I would like to sort my pages by the price.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can I use the field I grab from META to sort the pages? In my case the meta tag is price and I would like to sort my pages by the price.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Terranova</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-9835</link>
		<dc:creator>David Terranova</dc:creator>
		<pubDate>Mon, 16 Feb 2009 21:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-9835</guid>
		<description>great stuff.

I just modified it a bit, so that you can control which meta var to pull in, directly from your post/page.

instead of passing a boolean to start_el to tell it whether to look for &quot;description&quot;, you can simply pass it the name of the meta var:
update_option(&#039;get_meta&#039;, &quot;Location&quot;);

Then in the start_el you could do something like this:
$get_meta = get_option(&quot;get_meta&quot;);
if($get_meta!=&quot;&quot;){
	$meta_var = get_post_meta($page-&gt;ID, &quot;$get_meta&quot;, true);
		if ($page-&gt;ID != $current_page){
			$output .= &quot;    &quot;;
			if (!$meta_var){
				$meta_var = strip_tags(substr($page-&gt;post_content, 0, 250));
			}
		$output .= $meta_var;
	}
}


it&#039;s all I need at the moment (more than 1 set of meta vars) but this could be extended to accept an array of elements... Then it would be ready to be made into a plugin! :)</description>
		<content:encoded><![CDATA[<p>great stuff.</p>
<p>I just modified it a bit, so that you can control which meta var to pull in, directly from your post/page.</p>
<p>instead of passing a boolean to start_el to tell it whether to look for &#8220;description&#8221;, you can simply pass it the name of the meta var:<br />
update_option(&#8216;get_meta&#8217;, &#8220;Location&#8221;);</p>
<p>Then in the start_el you could do something like this:<br />
$get_meta = get_option(&#8220;get_meta&#8221;);<br />
if($get_meta!=&#8221;"){<br />
	$meta_var = get_post_meta($page-&gt;ID, &#8220;$get_meta&#8221;, true);<br />
		if ($page-&gt;ID != $current_page){<br />
			$output .= &#8221;    &#8220;;<br />
			if (!$meta_var){<br />
				$meta_var = strip_tags(substr($page-&gt;post_content, 0, 250));<br />
			}<br />
		$output .= $meta_var;<br />
	}<br />
}</p>
<p>it&#8217;s all I need at the moment (more than 1 set of meta vars) but this could be extended to accept an array of elements&#8230; Then it would be ready to be made into a plugin! <img src='http://tech.shantanugoel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress - Kurzbeschreibung einer Seite via custim Fields ausgeben &#124; Beim Arbeiten</title>
		<link>http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-5335</link>
		<dc:creator>Wordpress - Kurzbeschreibung einer Seite via custim Fields ausgeben &#124; Beim Arbeiten</dc:creator>
		<pubDate>Wed, 05 Nov 2008 23:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wp_list_pages-to-output-page-description-or-other-custom-fields-in-your-page-lists.html#comment-5335</guid>
		<description>[...] http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wplistpages-to-output-page-descripti...   Tags:benutzerdefinierte Felder, custom-fields, description, Hacks, Wordpress, wp_list_pages [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wplistpages-to-output-page-descripti.." rel="nofollow">http://tech.shantanugoel.com/2008/03/19/hack-wordpress-function-wplistpages-to-output-page-descripti..</a>.   Tags:benutzerdefinierte Felder, custom-fields, description, Hacks, Wordpress, wp_list_pages [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
