<?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 Hide A Page Or Category Link In WordPress</title>
	<atom:link href="http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress</link>
	<description>Easy to follow tutorials and videos on WordPress design as well as support on WordPress themes and plugins.</description>
	<lastBuildDate>Mon, 24 Aug 2009 08:38:13 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Lord</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-1649</link>
		<dc:creator>John Lord</dc:creator>
		<pubDate>Sun, 19 Jul 2009 10:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-1649</guid>
		<description>Hi Jarret

Actually, I found a plugin called Exclude Pages that worked like a charm.

Thanks
John</description>
		<content:encoded><![CDATA[<p>Hi Jarret</p>
<p>Actually, I found a plugin called Exclude Pages that worked like a charm.</p>
<p>Thanks<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Lord</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-1648</link>
		<dc:creator>John Lord</dc:creator>
		<pubDate>Sun, 19 Jul 2009 10:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-1648</guid>
		<description>Hi Jarret

The only place I can find any code for the listing of pages is in the them functions file (functions.php). The code looks like this:
{
	global $artThemeSettings;
	if (true === $artThemeSettings[&#039;menu.showHome&#039;] &amp;&amp; &#039;page&#039; != get_option(&#039;show_on_front&#039;))
		echo &#039;&lt;a href=&quot;&#039; . get_option(&#039;home&#039;) . &#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.$artThemeSettings[&#039;menu.topItemBegin&#039;]
			. $artThemeSettings[&#039;menu.homeCaption&#039;] . $artThemeSettings[&#039;menu.topItemEnd&#039;] . &#039;&lt;/a&gt;&#039;;
	add_action(&#039;get_pages&#039;, &#039;art_header_page_list_filter&#039;);
	add_action(&#039;wp_list_pages&#039;, &#039;art_list_pages_filter&#039;);
	wp_list_pages(&#039;title_li=&#039;);
	remove_action(&#039;wp_list_pages&#039;, &#039;art_list_pages_filter&#039;);
	remove_action(&#039;get_pages&#039;, &#039;art_header_page_list_filter&#039;);
}

Should I be putting the &amp;exclude parameter somewhere in here?

Regards
John</description>
		<content:encoded><![CDATA[<p>Hi Jarret</p>
<p>The only place I can find any code for the listing of pages is in the them functions file (functions.php). The code looks like this:<br />
{<br />
	global $artThemeSettings;<br />
	if (true === $artThemeSettings['menu.showHome'] &amp;&amp; &#8216;page&#8217; != get_option(&#8217;show_on_front&#8217;))<br />
		echo &#8216;<a href="' . get_option('home') . '" rel="nofollow">&#8216;.$artThemeSettings['menu.topItemBegin']<br />
			. $artThemeSettings['menu.homeCaption'] . $artThemeSettings['menu.topItemEnd'] . &#8216;</a>&#8216;;<br />
	add_action(&#8217;get_pages&#8217;, &#8216;art_header_page_list_filter&#8217;);<br />
	add_action(&#8217;wp_list_pages&#8217;, &#8216;art_list_pages_filter&#8217;);<br />
	wp_list_pages(&#8217;title_li=&#8217;);<br />
	remove_action(&#8217;wp_list_pages&#8217;, &#8216;art_list_pages_filter&#8217;);<br />
	remove_action(&#8217;get_pages&#8217;, &#8216;art_header_page_list_filter&#8217;);<br />
}</p>
<p>Should I be putting the &amp;exclude parameter somewhere in here?</p>
<p>Regards<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Roy</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-1346</link>
		<dc:creator>Robert Roy</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-1346</guid>
		<description>Actually, I sorted it myself like this:



Thank you very much for this guide! :)</description>
		<content:encoded><![CDATA[<p>Actually, I sorted it myself like this:</p>
<p>Thank you very much for this guide! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lillea Woodlyn</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-854</link>
		<dc:creator>Lillea Woodlyn</dc:creator>
		<pubDate>Sat, 30 May 2009 21:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-854</guid>
		<description>Thank you! I hadn&#039;t realised that there was no &#039;subscribe to comments&#039; here so I didn&#039;t see your reply until now. 

That helps a lot! :)</description>
		<content:encoded><![CDATA[<p>Thank you! I hadn&#8217;t realised that there was no &#8217;subscribe to comments&#8217; here so I didn&#8217;t see your reply until now. </p>
<p>That helps a lot! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarret</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-748</link>
		<dc:creator>Jarret</dc:creator>
		<pubDate>Thu, 21 May 2009 05:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-748</guid>
		<description>Ah ok, I have never used the theme before but just downloaded it right now and took a look at the code.

In the sidebar.php file where you found the code you showed above you are going to slightly modify it in order to get it to display correctly and make it easier for you to exclude categories. (Not to mention they are using an old piece of code to show the categories instead of the newer code).

So normally the code looks like

wp_list_cats(
  array(
      &#039;sort_column&#039;   =&gt; &#039;name&#039;,
      &#039;optioncount&#039;   =&gt; 1,
      &#039;hide_empty&#039;    =&gt; 0,
      &#039;hierarchical&#039;  =&gt; 1,
  )
);

and you are going to want to change it over to the following code

wp_list_categories(&#039;sort_column=name&amp;optioncount=1&amp;hide_empty=0&amp;hierarchical=1&amp;exclude=&lt;strong&gt;3&lt;/strong&gt;&#039;);

It looks a little bit different but it will still produce the same results. Notice that I added in the exclude parameter in order to hide the category with the ID of 3. All that you have to do is find the ID of your category and replace it with the number that is bolded above. 

If you want to hide multiple categories just add a comma after the 3 with the other ID(s) of the categories. 

Example: &amp;exclude=3,4,105

The above would hide the categories with the IDs of 3,4 and 105.</description>
		<content:encoded><![CDATA[<p>Ah ok, I have never used the theme before but just downloaded it right now and took a look at the code.</p>
<p>In the sidebar.php file where you found the code you showed above you are going to slightly modify it in order to get it to display correctly and make it easier for you to exclude categories. (Not to mention they are using an old piece of code to show the categories instead of the newer code).</p>
<p>So normally the code looks like</p>
<p>wp_list_cats(<br />
  array(<br />
      &#8217;sort_column&#8217;   => &#8216;name&#8217;,<br />
      &#8216;optioncount&#8217;   => 1,<br />
      &#8216;hide_empty&#8217;    => 0,<br />
      &#8216;hierarchical&#8217;  => 1,<br />
  )<br />
);</p>
<p>and you are going to want to change it over to the following code</p>
<p>wp_list_categories(&#8217;sort_column=name&#038;optioncount=1&#038;hide_empty=0&#038;hierarchical=1&#038;exclude=<strong>3</strong>&#8216;);</p>
<p>It looks a little bit different but it will still produce the same results. Notice that I added in the exclude parameter in order to hide the category with the ID of 3. All that you have to do is find the ID of your category and replace it with the number that is bolded above. </p>
<p>If you want to hide multiple categories just add a comma after the 3 with the other ID(s) of the categories. </p>
<p>Example: &#038;exclude=3,4,105</p>
<p>The above would hide the categories with the IDs of 3,4 and 105.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lillea</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-747</link>
		<dc:creator>Lillea</dc:creator>
		<pubDate>Thu, 21 May 2009 05:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-747</guid>
		<description>Hi again,

I meant &#039;post&#039;s title&#039;

I tried to follow your directions with the theme I&#039;m using because the categories have numbers at least, but I cannot locate the code you mention in either the header.php or sidebar.php

The theme Im using is Mandigo (not sure if you&#039;re familiar with it) and the closest I can find to the code you mention in sidebar.php is

 &#039;name&#039;,
				&#039;optioncount&#039;  =&gt; 1,
				&#039;hide_empty&#039;   =&gt; 0,
				&#039;hierarchical&#039; =&gt; 1,
			)

I would love to be able to hide a category (the posts in the category will be password protected too ideally)</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I meant &#8216;post&#8217;s title&#8217;</p>
<p>I tried to follow your directions with the theme I&#8217;m using because the categories have numbers at least, but I cannot locate the code you mention in either the header.php or sidebar.php</p>
<p>The theme Im using is Mandigo (not sure if you&#8217;re familiar with it) and the closest I can find to the code you mention in sidebar.php is</p>
<p> &#8216;name&#8217;,<br />
				&#8216;optioncount&#8217;  =&gt; 1,<br />
				&#8216;hide_empty&#8217;   =&gt; 0,<br />
				&#8216;hierarchical&#8217; =&gt; 1,<br />
			)</p>
<p>I would love to be able to hide a category (the posts in the category will be password protected too ideally)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarret</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-746</link>
		<dc:creator>Jarret</dc:creator>
		<pubDate>Thu, 21 May 2009 04:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-746</guid>
		<description>Hi Lillea, thanks for your question.

It will work just fine with any kind of permalink whether you are just showing the id of the post, the date and the title, or just the title as you explained.

You can find the ID of each post by visiting the Edit Posts page found under the Edit link in the Posts section of your Admin Dashboard and by hovering your mouse over the title of the post. Then look in your status bar located at the bottom of your browser and make a note of the number at the end of the url. This number will be the ID of that post.

Let me know if you need anymore help or further clarification!</description>
		<content:encoded><![CDATA[<p>Hi Lillea, thanks for your question.</p>
<p>It will work just fine with any kind of permalink whether you are just showing the id of the post, the date and the title, or just the title as you explained.</p>
<p>You can find the ID of each post by visiting the Edit Posts page found under the Edit link in the Posts section of your Admin Dashboard and by hovering your mouse over the title of the post. Then look in your status bar located at the bottom of your browser and make a note of the number at the end of the url. This number will be the ID of that post.</p>
<p>Let me know if you need anymore help or further clarification!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lillea</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-745</link>
		<dc:creator>Lillea</dc:creator>
		<pubDate>Thu, 21 May 2009 04:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-745</guid>
		<description>This could really help me, thank you! But I have a question:

What about permalinks? The ID of my posts are not numbers, they&#039;re the post&#039;s tile with hyphens because I&#039;m using permalinks.</description>
		<content:encoded><![CDATA[<p>This could really help me, thank you! But I have a question:</p>
<p>What about permalinks? The ID of my posts are not numbers, they&#8217;re the post&#8217;s tile with hyphens because I&#8217;m using permalinks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarret</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-99</link>
		<dc:creator>Jarret</dc:creator>
		<pubDate>Tue, 03 Mar 2009 17:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-99</guid>
		<description>Hi Gaetan, it sounds as though something else is the issue. It is saying you have an unexpected variable listed on line 1 in your sidebar.php file and I am going to assume that something like &lt;code&gt;wp_list_categories();&lt;/code&gt; isn&#039;t being used on the first line of your sidebar.php file.

Plus, I have not heard anything of this not working on PHP5 and out of all my sites that use PHP5 it works.  Would you be able to post the first few lines of your sidebar.php file here so maybe I could try to figure out what is going on?</description>
		<content:encoded><![CDATA[<p>Hi Gaetan, it sounds as though something else is the issue. It is saying you have an unexpected variable listed on line 1 in your sidebar.php file and I am going to assume that something like <code>wp_list_categories();</code> isn&#8217;t being used on the first line of your sidebar.php file.</p>
<p>Plus, I have not heard anything of this not working on PHP5 and out of all my sites that use PHP5 it works.  Would you be able to post the first few lines of your sidebar.php file here so maybe I could try to figure out what is going on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaetan</title>
		<link>http://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress/comment-page-1#comment-98</link>
		<dc:creator>Gaetan</dc:creator>
		<pubDate>Tue, 03 Mar 2009 15:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://wpthemesupport.com/?p=98#comment-98</guid>
		<description>Hello!

Really nice tutorial!! I wanted to hide a categorie...I have all what i need! 

When i try to add &quot;&amp;exclude=32&quot;, 
I have an error:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/sites/.../sidebar.php on line 1

Maybe because of Php5?

Thanks for your help!!;-)

Gaetan</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Really nice tutorial!! I wanted to hide a categorie&#8230;I have all what i need! </p>
<p>When i try to add &#8220;&amp;exclude=32&#8243;,<br />
I have an error:<br />
Parse error: syntax error, unexpected T_VARIABLE in /var/www/sites/&#8230;/sidebar.php on line 1</p>
<p>Maybe because of Php5?</p>
<p>Thanks for your help!!;-)</p>
<p>Gaetan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
