<?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: How To Remove the White Space in wp_list_pages()</title>
	<atom:link href="http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/</link>
	<description>Visit Blogsessive for daily WordPress blogging tips.</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:28:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Alex, Blogsessive</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-411246</link>
		<dc:creator>Alex, Blogsessive</dc:creator>
		<pubDate>Fri, 30 Sep 2011 12:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-411246</guid>
		<description>Sarah, the fact that you have little to no understanding of a bit of programming language doesn&#039;t make a VERY basic information a hack or bad. It&#039;s your choice to use it or not. I don&#039;t encourage people to do things when they aren&#039;t comfortable with they skill level. And I am fairly sure you did NOT do this properly, because again, this is VERY basic and with no chance of failing if you do it right. So please, if you can&#039;t assume responsibility for your lack of knowledge or a mistake you most likely did, don&#039;t bash it. You can bash something or criticize when you can back up your statement with knowledge and arguments, other than that it&#039;s all nothing but a series of &quot;mean words&quot;.</description>
		<content:encoded><![CDATA[<p>Sarah, the fact that you have little to no understanding of a bit of programming language doesn&#8217;t make a VERY basic information a hack or bad. It&#8217;s your choice to use it or not. I don&#8217;t encourage people to do things when they aren&#8217;t comfortable with they skill level. And I am fairly sure you did NOT do this properly, because again, this is VERY basic and with no chance of failing if you do it right. So please, if you can&#8217;t assume responsibility for your lack of knowledge or a mistake you most likely did, don&#8217;t bash it. You can bash something or criticize when you can back up your statement with knowledge and arguments, other than that it&#8217;s all nothing but a series of &#8220;mean words&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-411208</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Thu, 22 Sep 2011 12:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-411208</guid>
		<description>I copied you code exactly and where exactly you stated and my entire website is down. I could not delete the code either because it said it was sent to the function.php&#039;s header location and could be changed. I know have to hire someone to fix this and pay for backup files. This is a warning to anyone reading this (if it gets posted). This is either a hacker site or bad information. I&#039;m a poor startup, and the money I could have been using for groceries is now to pay for this screw up!</description>
		<content:encoded><![CDATA[<p>I copied you code exactly and where exactly you stated and my entire website is down. I could not delete the code either because it said it was sent to the function.php&#8217;s header location and could be changed. I know have to hire someone to fix this and pay for backup files. This is a warning to anyone reading this (if it gets posted). This is either a hacker site or bad information. I&#8217;m a poor startup, and the money I could have been using for groceries is now to pay for this screw up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Huson</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-127282</link>
		<dc:creator>Ben Huson</dc:creator>
		<pubDate>Thu, 01 Apr 2010 10:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-127282</guid>
		<description>I created a plugin here that removes the white space from page and category lists. You can find it in the WordPress Plugin Directory:

http://wordpress.org/extend/plugins/remove-white-space/</description>
		<content:encoded><![CDATA[<p>I created a plugin here that removes the white space from page and category lists. You can find it in the WordPress Plugin Directory:</p>
<p><a href="http://wordpress.org/extend/plugins/remove-white-space/" rel="nofollow">http://wordpress.org/extend/pl.....ite-space/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-107309</link>
		<dc:creator>Kai</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-107309</guid>
		<description>Trying to apply this to categories but unfortunately it does not work. This is how I applied the function:



Any idea where I&#039;m wrong? Thanks so much!</description>
		<content:encoded><![CDATA[<p>Trying to apply this to categories but unfortunately it does not work. This is how I applied the function:</p>
<p>Any idea where I&#8217;m wrong? Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JD Graffam</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-55647</link>
		<dc:creator>JD Graffam</dc:creator>
		<pubDate>Sat, 11 Jul 2009 21:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-55647</guid>
		<description>I got it! It was 

php qbkl_nospace(wp_list_pages(&#039;title_li=&amp;echo=0&#039;));</description>
		<content:encoded><![CDATA[<p>I got it! It was </p>
<p>php qbkl_nospace(wp_list_pages(&#8216;title_li=&amp;echo=0&#8242;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JD Graffam</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-55644</link>
		<dc:creator>JD Graffam</dc:creator>
		<pubDate>Sat, 11 Jul 2009 20:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-55644</guid>
		<description>This works great, but while doing this I also want to remove the word &quot;Pages&quot; from the top of the list. So I tried this:

&lt;code&gt;* Some stripped code&lt;/code&gt;

It didn&#039;t work, so I reversed the order of the parameters. Then your function worked, of course, but the word &quot;Pages&quot; appeared again. 

Does anyone know the syntax for this? Google is not help, or &#039;m googling the wrong words. :)</description>
		<content:encoded><![CDATA[<p>This works great, but while doing this I also want to remove the word &#8220;Pages&#8221; from the top of the list. So I tried this:</p>
<p><code>* Some stripped code</code></p>
<p>It didn&#8217;t work, so I reversed the order of the parameters. Then your function worked, of course, but the word &#8220;Pages&#8221; appeared again. </p>
<p>Does anyone know the syntax for this? Google is not help, or &#8216;m googling the wrong words. <img src='http://blogsessive.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-48203</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 12 Jun 2009 15:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-48203</guid>
		<description>I found this function very useful for modifying the output from wp_list_pages. (Although, not because of any white space issues.)

Thanks to the post author and the commenter Sebastian above for pointing out the need for the echo=0 parameter:

qbkl_nospace(wp_list_pages(’echo=0′));</description>
		<content:encoded><![CDATA[<p>I found this function very useful for modifying the output from wp_list_pages. (Although, not because of any white space issues.)</p>
<p>Thanks to the post author and the commenter Sebastian above for pointing out the need for the echo=0 parameter:</p>
<p>qbkl_nospace(wp_list_pages(’echo=0′));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 如何去除 wp_list_pages 输出的白色空格 - wp_list_pages技巧 - &#124; 杰克花园</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-43564</link>
		<dc:creator>如何去除 wp_list_pages 输出的白色空格 - wp_list_pages技巧 - &#124; 杰克花园</dc:creator>
		<pubDate>Thu, 21 May 2009 11:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-43564</guid>
		<description>[...] 原文地址： How to remove the white space in wp_list_pages() [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文地址： How to remove the white space in wp_list_pages() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray Chapman</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-42667</link>
		<dc:creator>Murray Chapman</dc:creator>
		<pubDate>Sun, 17 May 2009 17:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-42667</guid>
		<description>Hi there.
I searched and searched for a lifetime (an hour) and no matter what I did, I could not fix the problem. No matter what I did, I kept seeing the same spacing in between the buttons. Then it occurred to me that it may be CSS related. I went into the CSS, removed the left and right margins on the buttons and it corrected the issue. While some people may want the dividing border, I just thought it may help someone out there.
Cheers
muz</description>
		<content:encoded><![CDATA[<p>Hi there.<br />
I searched and searched for a lifetime (an hour) and no matter what I did, I could not fix the problem. No matter what I did, I kept seeing the same spacing in between the buttons. Then it occurred to me that it may be CSS related. I went into the CSS, removed the left and right margins on the buttons and it corrected the issue. While some people may want the dividing border, I just thought it may help someone out there.<br />
Cheers<br />
muz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Lind</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-29816</link>
		<dc:creator>Josh Lind</dc:creator>
		<pubDate>Thu, 26 Mar 2009 03:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-29816</guid>
		<description>Any thoughts about how to add a class for &quot;last&quot; and &quot;first&quot; to menu li tags with this method?</description>
		<content:encoded><![CDATA[<p>Any thoughts about how to add a class for &#8220;last&#8221; and &#8220;first&#8221; to menu li tags with this method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-11984</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 01 Jan 2009 22:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-11984</guid>
		<description>Great topic... whitespace can be such a pain sometimes. Definitely need the echo argument in wp_list_pages. I didn&#039;t even use the function, just removed all the whitespace before I echoed it.</description>
		<content:encoded><![CDATA[<p>Great topic&#8230; whitespace can be such a pain sometimes. Definitely need the echo argument in wp_list_pages. I didn&#8217;t even use the function, just removed all the whitespace before I echoed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: addison</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-8422</link>
		<dc:creator>addison</dc:creator>
		<pubDate>Wed, 10 Dec 2008 03:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-8422</guid>
		<description>didn&#039;t work for me.</description>
		<content:encoded><![CDATA[<p>didn&#8217;t work for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-5441</link>
		<dc:creator>Chandra</dc:creator>
		<pubDate>Thu, 06 Nov 2008 05:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-5441</guid>
		<description>Hi there,

I am trying to create a simple theme and I got this space bug that I couldn&#039;t figure out. After doing a research, I landed on this solution. 

I tried it but its not working out for me. I have duplicated the default theme and have made necessary edits on the style.css file headers. I had no functions.php on my theme. So, I created the empty functions.php file and pasted this, updated the wp_list_pages() function.

&lt;li &gt;&lt;a href=&quot;index.php&quot; title=&quot;Home&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;  

But it looks like either its not taking this or something is wrong. The space bug is still there. Anything you can figure out?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I am trying to create a simple theme and I got this space bug that I couldn&#8217;t figure out. After doing a research, I landed on this solution. </p>
<p>I tried it but its not working out for me. I have duplicated the default theme and have made necessary edits on the style.css file headers. I had no functions.php on my theme. So, I created the empty functions.php file and pasted this, updated the wp_list_pages() function.</p>
<p>&lt;li &gt;<a href="index.php" title="Home" rel="nofollow">Home</a>  </p>
<p>But it looks like either its not taking this or something is wrong. The space bug is still there. Anything you can figure out?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-4063</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Fri, 10 Oct 2008 20:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-4063</guid>
		<description>Works fine! But I absolutely recommend to put it in your [template-path]/functions.php!

And a little hint why it couldn&#039;t work out for ocd. The later function-call should use the echo-argument of wp_list_pages and look like this:

qbkl_nospace(wp_list_pages(&#039;echo=0&#039;));</description>
		<content:encoded><![CDATA[<p>Works fine! But I absolutely recommend to put it in your [template-path]/functions.php!</p>
<p>And a little hint why it couldn&#8217;t work out for ocd. The later function-call should use the echo-argument of wp_list_pages and look like this:</p>
<p>qbkl_nospace(wp_list_pages(&#8216;echo=0&#8242;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex, Blogsessive</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-1050</link>
		<dc:creator>Alex, Blogsessive</dc:creator>
		<pubDate>Sat, 28 Jun 2008 14:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-1050</guid>
		<description>It&#039;s basically the same thing, only that by applying it in a separate file (like functions.php inside your theme) you won&#039;t need to make this change every time you update your WP to a newer version. Glad to be of help.</description>
		<content:encoded><![CDATA[<p>It&#8217;s basically the same thing, only that by applying it in a separate file (like functions.php inside your theme) you won&#8217;t need to make this change every time you update your WP to a newer version. Glad to be of help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ocd</title>
		<link>http://blogsessive.com/blogging-tools/how-to-remove-the-white-space-in-wp_list_pages/#comment-1049</link>
		<dc:creator>ocd</dc:creator>
		<pubDate>Sat, 28 Jun 2008 14:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogsessive.com/?p=39#comment-1049</guid>
		<description>yeah, had problems with the function,

then edited wordpress/wp-includes/post-template.php - function wp_list_pages

and added your line:

$output = str_replace(array(&quot;\n&quot;, &quot;\r&quot;, &quot;\t&quot;), &quot;&quot;, $output);

above the native:

$output = apply_filters(&#039;wp_list_pages&#039;, $output);

to this:
if ( $r[&#039;title_li&#039;] )
$output .= &#039;&#039;;
	}

$output = str_replace(array(&quot;\n&quot;, &quot;\r&quot;, &quot;\t&quot;), &quot;&quot;, $output);
$output = apply_filters(&#039;wp_list_pages&#039;, $output);

if ( $r[&#039;echo&#039;] )

then it worked great, Thanks!</description>
		<content:encoded><![CDATA[<p>yeah, had problems with the function,</p>
<p>then edited wordpress/wp-includes/post-template.php &#8211; function wp_list_pages</p>
<p>and added your line:</p>
<p>$output = str_replace(array(&#8220;\n&#8221;, &#8220;\r&#8221;, &#8220;\t&#8221;), &#8220;&#8221;, $output);</p>
<p>above the native:</p>
<p>$output = apply_filters(&#8216;wp_list_pages&#8217;, $output);</p>
<p>to this:<br />
if ( $r['title_li'] )<br />
$output .= &#8221;;<br />
	}</p>
<p>$output = str_replace(array(&#8220;\n&#8221;, &#8220;\r&#8221;, &#8220;\t&#8221;), &#8220;&#8221;, $output);<br />
$output = apply_filters(&#8216;wp_list_pages&#8217;, $output);</p>
<p>if ( $r['echo'] )</p>
<p>then it worked great, Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

