<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Creating a Submenu in WordPress</title>
	<atom:link href="http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/</link>
	<description>A blog about web developement and usability.</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:17:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Eddy</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14965</link>
		<dc:creator>Eddy</dc:creator>
		<pubDate>Fri, 18 Jun 2010 08:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14965</guid>
		<description>Hello Gabriel Svennerberg, I am new in wordpress and I&#039;m confused for using this now..
maybe this is weird question, but want to ask, where I can put the code that you have written it? thx for the answer.</description>
		<content:encoded><![CDATA[<p>Hello Gabriel Svennerberg, I am new in wordpress and I&#8217;m confused for using this now..<br />
maybe this is weird question, but want to ask, where I can put the code that you have written it? thx for the answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gad</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14837</link>
		<dc:creator>Michael Gad</dc:creator>
		<pubDate>Sun, 13 Jun 2010 22:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14837</guid>
		<description>EDIT: Also i cannot figureout where i edit the UL for the subsubmenu.</description>
		<content:encoded><![CDATA[<p>EDIT: Also i cannot figureout where i edit the UL for the subsubmenu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gad</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14836</link>
		<dc:creator>Michael Gad</dc:creator>
		<pubDate>Sun, 13 Jun 2010 22:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14836</guid>
		<description>Hi!

I a newbie at PHP and wordpress. I used you script and it works great!

Now I have a problem though. How do I add a menulevel 3? So topmenu -&gt; submenu -&gt;subsubmenu

It works displaying the subsubmenu but clicking the subsubmenu the other pages in the menu dissaper.

Also i cannot figureout where i edit the  for the subsubmenu.

Anyway helt would be deeply appriciated.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I a newbie at <acronym title="Pre-Hypertext Processing">PHP</acronym> and wordpress. I used you script and it works great!</p>
<p>Now I have a problem though. How do I add a menulevel 3? So topmenu -&gt; submenu -&gt;subsubmenu</p>
<p>It works displaying the subsubmenu but clicking the subsubmenu the other pages in the menu dissaper.</p>
<p>Also i cannot figureout where i edit the  for the subsubmenu.</p>
<p>Anyway helt would be deeply appriciated.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Tharp</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14750</link>
		<dc:creator>Nate Tharp</dc:creator>
		<pubDate>Mon, 07 Jun 2010 19:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14750</guid>
		<description>Thanks so much for this Gabriel. I&#039;ve used a few different PHP snippets for secondary menus on various WordPress sites, but none of them were able to highlight the parent menu item when that page was active. But yours fixes that. Really appreciate it.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this Gabriel. I&#8217;ve used a few different <acronym title="Pre-Hypertext Processing">PHP</acronym> snippets for secondary menus on various WordPress sites, but none of them were able to highlight the parent menu item when that page was active. But yours fixes that. Really appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shell</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14421</link>
		<dc:creator>Shell</dc:creator>
		<pubDate>Tue, 18 May 2010 12:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14421</guid>
		<description>This has worked perfectly for me, thanks! It is exactly what I have been searching for all day - after trying a lot of other suggestions thatall failed! Wish I had found this first! lol</description>
		<content:encoded><![CDATA[<p>This has worked perfectly for me, thanks! It is exactly what I have been searching for all day &#8211; after trying a lot of other suggestions thatall failed! Wish I had found this first! lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Spragu</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-14305</link>
		<dc:creator>David Spragu</dc:creator>
		<pubDate>Thu, 13 May 2010 13:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-14305</guid>
		<description>ID.&#039;&amp;echo=0&#039;);

if ($children) { ?&gt;









I found this shorter, simpler version you might like.</description>
		<content:encoded><![CDATA[<p>ID.&#8217;&amp;echo=0&#8242;);</p>
<p>if ($children) { ?&gt;</p>
<p>I found this shorter, simpler version you might like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pattaya resort</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-13930</link>
		<dc:creator>pattaya resort</dc:creator>
		<pubDate>Mon, 26 Apr 2010 05:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-13930</guid>
		<description>good thank you</description>
		<content:encoded><![CDATA[<p>good thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reseller hosting</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-13850</link>
		<dc:creator>reseller hosting</dc:creator>
		<pubDate>Fri, 23 Apr 2010 04:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-13850</guid>
		<description>I really like your writing style, its not generic and extremly long and tedious like a lot of blog posts I read, you get to the point and I really enjoy reading your articles! Oh, and merry Christmas!</description>
		<content:encoded><![CDATA[<p>I really like your writing style, its not generic and extremly long and tedious like a lot of blog posts I read, you get to the point and I really enjoy reading your articles! Oh, and merry Christmas!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-12892</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-12892</guid>
		<description>Like many others, you&#039;re help saved the day and I really appreciate you taking the time to share the knowledge!

Cheers!</description>
		<content:encoded><![CDATA[<p>Like many others, you&#8217;re help saved the day and I really appreciate you taking the time to share the knowledge!</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-12057</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Tue, 09 Feb 2010 11:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-12057</guid>
		<description>Thanks, you helped me allot!</description>
		<content:encoded><![CDATA[<p>Thanks, you helped me allot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-11925</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-11925</guid>
		<description>Thanks for the hack!  Worked perfectly.</description>
		<content:encoded><![CDATA[<p>Thanks for the hack!  Worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Behshad</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-11160</link>
		<dc:creator>Joshua Behshad</dc:creator>
		<pubDate>Fri, 15 Jan 2010 10:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-11160</guid>
		<description>Thank you. Worked for me first time.</description>
		<content:encoded><![CDATA[<p>Thank you. Worked for me first time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-10016</link>
		<dc:creator>Lloyd</dc:creator>
		<pubDate>Mon, 23 Nov 2009 01:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-10016</guid>
		<description>Thanks! This saved me heaps of time and worked straight out of the box. You&#039;re a champion :)</description>
		<content:encoded><![CDATA[<p>Thanks! This saved me heaps of time and worked straight out of the box. You&#8217;re a champion <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suniel</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-9427</link>
		<dc:creator>suniel</dc:creator>
		<pubDate>Thu, 29 Oct 2009 16:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-9427</guid>
		<description>thanks, great post, works great!</description>
		<content:encoded><![CDATA[<p>thanks, great post, works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Woods</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-9222</link>
		<dc:creator>Nate Woods</dc:creator>
		<pubDate>Sat, 24 Oct 2009 05:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-9222</guid>
		<description>Just wanted to thank you for this, this works perfectly and was exactly what I was looking for. 
Thanks again.</description>
		<content:encoded><![CDATA[<p>Just wanted to thank you for this, this works perfectly and was exactly what I was looking for.<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wantusiak.com &#187; Wordpress: How to style wp_list_pages</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-8326</link>
		<dc:creator>wantusiak.com &#187; Wordpress: How to style wp_list_pages</dc:creator>
		<pubDate>Thu, 17 Sep 2009 07:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-8326</guid>
		<description>[...] Marc Wiest was kind to share wit us a solution to this problem, based on the above hack and work by Gabriel Svennerberg. Here is how to create a dynamic [...]</description>
		<content:encoded><![CDATA[<p>[...] Marc Wiest was kind to share wit us a solution to this problem, based on the above hack and work by Gabriel Svennerberg. Here is how to create a dynamic [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eduardo-BR</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-8254</link>
		<dc:creator>eduardo-BR</dc:creator>
		<pubDate>Mon, 14 Sep 2009 21:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-8254</guid>
		<description>I love your script, is what a need, but all the sub-pages are showin in the search page, how can a fix this?</description>
		<content:encoded><![CDATA[<p>I love your script, is what a need, but all the sub-pages are showin in the search page, how can a fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silin</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-7311</link>
		<dc:creator>Silin</dc:creator>
		<pubDate>Fri, 14 Aug 2009 13:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-7311</guid>
		<description>Wordpress scrubbed my custom divs so that post didn&#039;t make sense. Here it is again:

&quot;What about having a completely separated [div id=&quot;menu][/div] and [div id=&quot;submenu&quot;][/div] with the submenu only showing when a main page has subpages, yet the submenu still shows when a subpage has been clicked.

That sounds much more difficult and is what I’m current working on.&quot;</description>
		<content:encoded><![CDATA[<p>WordPress scrubbed my custom divs so that post didn&#8217;t make sense. Here it is again:</p>
<p>&#8220;What about having a completely separated [div id="menu][/div] and [div id="submenu"][/div] with the submenu only showing when a main page has subpages, yet the submenu still shows when a subpage has been clicked.</p>
<p>That sounds much more difficult and is what I’m current working on.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silin</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-7310</link>
		<dc:creator>Silin</dc:creator>
		<pubDate>Fri, 14 Aug 2009 13:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-7310</guid>
		<description>What about having a completely seperated  and  with the submenu only showing when a main page has subpages, set the submenu still shows when a subpage has been clicked.

That sounds much more difficult and is what I&#039;m current working on.</description>
		<content:encoded><![CDATA[<p>What about having a completely seperated  and  with the submenu only showing when a main page has subpages, set the submenu still shows when a subpage has been clicked.</p>
<p>That sounds much more difficult and is what I&#8217;m current working on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shandilya</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-7101</link>
		<dc:creator>Shandilya</dc:creator>
		<pubDate>Thu, 06 Aug 2009 16:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-7101</guid>
		<description>Can someone help me with this? I have lots of articles and I want to display them under different parents. Here is my question:

1. I want parent pages to be formatted differently than child page list

For example in the link here: &lt;a href=&quot;http://www.theagitator.com/publications/&quot; rel=&quot;nofollow&quot;&gt;http://www.theagitator.com/publications/&lt;/a&gt;

My parent page is called &quot;Feature-Length Articles&quot; [which is NOT a link and is formatted differently]

Now I want to show all the children pages as links [] list with publish date.

Thanks for all the help.</description>
		<content:encoded><![CDATA[<p>Can someone help me with this? I have lots of articles and I want to display them under different parents. Here is my question:</p>
<p>1. I want parent pages to be formatted differently than child page list</p>
<p>For example in the link here: <a href="http://www.theagitator.com/publications/" rel="nofollow">http://www.theagitator.com/publications/</a></p>
<p>My parent page is called &#8220;Feature-Length Articles&#8221; [which is NOT a link and is formatted differently]</p>
<p>Now I want to show all the children pages as links [] list with publish date.</p>
<p>Thanks for all the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-6705</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 21 Jul 2009 09:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-6705</guid>
		<description>&lt;strong&gt;&lt;em&gt;@Tim:&lt;/em&gt;&lt;/strong&gt; Your best bet is to use CSS to style the unordered list so that it&#039;s horizontal. A now old, but still excellent article on how to do this is &lt;strong&gt;CSS Design: Taming Lists&lt;/strong&gt; at A List Apart. http://www.alistapart.com/articles/taminglists/

Hint: Try &lt;code&gt;.submenu li {display: inline}&lt;/code&gt; in your CSS.</description>
		<content:encoded><![CDATA[<p><strong><em>@Tim:</em></strong> Your best bet is to use <acronym title="Cascading Style Sheets">CSS</acronym> to style the unordered list so that it&#8217;s horizontal. A now old, but still excellent article on how to do this is <strong><acronym title="Cascading Style Sheets">CSS</acronym> Design: Taming Lists</strong> at A List Apart. <a href="http://www.alistapart.com/articles/taminglists/" rel="nofollow">http://www.alistapart.com/articles/taminglists/</a></p>
<p>Hint: Try <code>.submenu li {display: inline}</code> in your <acronym title="Cascading Style Sheets">CSS</acronym>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Dunkley</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-6695</link>
		<dc:creator>Tim Dunkley</dc:creator>
		<pubDate>Tue, 21 Jul 2009 00:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-6695</guid>
		<description>Hi, Love the work you&#039;ve done on this little submenu code, it was a piece of cake to add to my custom theme, however I&#039;m just wondering how it would be possible to have the submenu output on a single horizontal line? (eg submenu1 &#124; submenu2 &#124; submenu3 &#124; submenu4)

Tim</description>
		<content:encoded><![CDATA[<p>Hi, Love the work you&#8217;ve done on this little submenu code, it was a piece of cake to add to my custom theme, however I&#8217;m just wondering how it would be possible to have the submenu output on a single horizontal line? (eg submenu1 | submenu2 | submenu3 | submenu4)</p>
<p>Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cian McCoy</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-6026</link>
		<dc:creator>Cian McCoy</dc:creator>
		<pubDate>Tue, 30 Jun 2009 14:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-6026</guid>
		<description>Sorry for the flooding.. managed to insert a span in the anchors by using link_before and link_after like so

&lt;code&gt;
if(is_page() &amp;&amp; $post-&gt;post_parent) {
    // This is a subpage
    $children = wp_list_pages(&quot;title_li=&amp;include=&quot;.$post-&gt;post_parent .&quot;&amp;link_before=&amp;link_after=&amp;echo=0&quot;);
    $children .= wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$post-&gt;post_parent .&quot;&amp;link_before=&amp;link_after=&amp;echo=0&quot;);
} else if($has_subpages) {
    // This is a parent page that have subpages
    $children = wp_list_pages(&quot;title_li=&amp;include=&quot;.$post-&gt;ID .&quot;&amp;link_before=&amp;link_after=&amp;echo=0&quot;);
    $children .= wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$post-&gt;ID .&quot;&amp;link_before=&amp;link_after=&amp;echo=0&quot;);
}
&lt;/code&gt;

sorted!</description>
		<content:encoded><![CDATA[<p>Sorry for the flooding.. managed to insert a span in the anchors by using link_before and link_after like so</p>
<p><code><br />
if(is_page() &amp;&amp; $post-&gt;post_parent) {<br />
    // This is a subpage<br />
    $children = wp_list_pages("title_li=&amp;include=".$post-&gt;post_parent ."&amp;link_before=&amp;link_after=&amp;echo=0");<br />
    $children .= wp_list_pages("title_li=&amp;child_of=".$post-&gt;post_parent ."&amp;link_before=&amp;link_after=&amp;echo=0");<br />
} else if($has_subpages) {<br />
    // This is a parent page that have subpages<br />
    $children = wp_list_pages("title_li=&amp;include=".$post-&gt;ID ."&amp;link_before=&amp;link_after=&amp;echo=0");<br />
    $children .= wp_list_pages("title_li=&amp;child_of=".$post-&gt;ID ."&amp;link_before=&amp;link_after=&amp;echo=0");<br />
}<br />
</code></p>
<p>sorted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cian McCoy</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-6022</link>
		<dc:creator>Cian McCoy</dc:creator>
		<pubDate>Tue, 30 Jun 2009 12:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-6022</guid>
		<description>sorry about the links in that last comment

I basically want it to output something like this (ignore the extra spaces)

&lt;code&gt;&lt;a&gt;Sub Page1&lt;/a&gt;&lt;/code&gt;

hope it works this time</description>
		<content:encoded><![CDATA[<p>sorry about the links in that last comment</p>
<p>I basically want it to output something like this (ignore the extra spaces)</p>
<p><code><a>Sub Page1</a></code></p>
<p>hope it works this time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cian McCoy</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-6020</link>
		<dc:creator>Cian McCoy</dc:creator>
		<pubDate>Tue, 30 Jun 2009 11:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-6020</guid>
		<description>Hi

Great post, pretty much exactly what I was looking for, thanks for that!

I am very new to both wordpress and php so I&#039;m sorry if this is a stupid question but I&#039;m stuck
The code that is output from this php looks something like his for each list item:

&lt;code&gt;&lt;a href=&quot;http://websitename.com/sub-page1/&quot; title=&quot;Sub Page1&quot; rel=&quot;nofollow&quot;&gt;Sub Page1&lt;/a&gt;&lt;/code&gt;

Is it possible to insert a span within the anchor somehow? so the php would output something like this?

&lt;code&gt;&lt;a href=&quot;http://websitename.com/sub-page1/&quot; title=&quot;Sub Page1&quot; rel=&quot;nofollow&quot;&gt;Sub Page1&lt;/a&gt;&lt;/code&gt;

Or would this make things complicated?</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Great post, pretty much exactly what I was looking for, thanks for that!</p>
<p>I am very new to both wordpress and php so I&#8217;m sorry if this is a stupid question but I&#8217;m stuck<br />
The code that is output from this php looks something like his for each list item:</p>
<p><code><a href="http://websitename.com/sub-page1/" title="Sub Page1" rel="nofollow">Sub Page1</a></code></p>
<p>Is it possible to insert a span within the anchor somehow? so the php would output something like this?</p>
<p><code><a href="http://websitename.com/sub-page1/" title="Sub Page1" rel="nofollow">Sub Page1</a></code></p>
<p>Or would this make things complicated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-5636</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Sat, 20 Jun 2009 19:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-5636</guid>
		<description>&lt;strong&gt;&lt;em&gt;marnix bras: &lt;/em&gt;&lt;/strong&gt; Thanks for noticing! I&#039;ve corrected the example.</description>
		<content:encoded><![CDATA[<p><strong><em>marnix bras: </em></strong> Thanks for noticing! I&#8217;ve corrected the example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marnix bras</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-5581</link>
		<dc:creator>marnix bras</dc:creator>
		<pubDate>Fri, 19 Jun 2009 10:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-5581</guid>
		<description>Super script: Nice and well explained! Love that!
One small thing: you mention: 

&lt;code&gt;
 // Check to see if we have anything to output  
&lt;/code&gt;

And that particular text shows up in my WordPress project :-)  Because it is outside a PHP tag... 
Tanks for your blogpost!</description>
		<content:encoded><![CDATA[<p>Super script: Nice and well explained! Love that!<br />
One small thing: you mention: </p>
<p><code><br />
 // Check to see if we have anything to output<br />
</code></p>
<p>And that particular text shows up in my WordPress project <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Because it is outside a <acronym title="Pre-Hypertext Processing">PHP</acronym> tag&#8230;<br />
Tanks for your blogpost!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pet Snakes</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-4853</link>
		<dc:creator>Pet Snakes</dc:creator>
		<pubDate>Wed, 27 May 2009 17:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-4853</guid>
		<description>Very interesting post, I love finding a good quality blog thats not full of rubbish. I would love to do a link exchange.</description>
		<content:encoded><![CDATA[<p>Very interesting post, I love finding a good quality blog thats not full of rubbish. I would love to do a link exchange.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-4740</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Sun, 24 May 2009 21:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-4740</guid>
		<description>&lt;strong&gt;&lt;em&gt;Linda:&lt;/em&gt;&lt;/strong&gt; Cool! I will definitely check that out. Thanks for the tip!</description>
		<content:encoded><![CDATA[<p><strong><em>Linda:</em></strong> Cool! I will definitely check that out. Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://www.svennerberg.com/2009/02/creating-a-submenu-in-wordpress/comment-page-1/#comment-4726</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Sun, 24 May 2009 14:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=1633#comment-4726</guid>
		<description>Just thought to let you know that an alternative way to do this is to use the code from the sidebar of the K2 Theme. Just strip away all the other stuff and you are left with a very nice piece of code and it&#039;s a simple thing to make the heading clickable also if you want.</description>
		<content:encoded><![CDATA[<p>Just thought to let you know that an alternative way to do this is to use the code from the sidebar of the K2 Theme. Just strip away all the other stuff and you are left with a very nice piece of code and it&#8217;s a simple thing to make the heading clickable also if you want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
