<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Categories will not hide</title>
		<link>http://www.kriesi.at/support/topic/categories-will-not-hide</link>
		<description>Support Forum - Topic: Categories will not hide</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 14:58:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/categories-will-not-hide" rel="self" type="application/rss+xml" />

		<item>
			<title>James Morrison on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-5035</link>
			<pubDate>Fri, 17 Sep 2010 14:05:20 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">5035@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I've had a look through your site, you've excluded Featured / Featured 2 / Featured 3 and Featured 5 (&#60;strong&#62;not&#60;/strong&#62; Featured 4).&#60;/p&#62;
&#60;p&#62;If you look at &#60;a href=&#34;http://101river.com/category/featured4/&#34;&#62;Featured 4&#60;/a&#62; you can see that the category name appears (&#60;a href=&#34;http://cl.ly/99897679037dc369dd84&#34; rel=&#34;nofollow&#34;&#62;http://cl.ly/99897679037dc369dd84&#60;/a&#62;) whereas if you look at &#60;a href=&#34;http://101river.com/category/featured-5/&#34;&#62;Featured 5&#60;/a&#62; you can see that the category is hidden (&#60;a href=&#34;http://cl.ly/4b3c244ec0b361e809e7&#34; rel=&#34;nofollow&#34;&#62;http://cl.ly/4b3c244ec0b361e809e7&#60;/a&#62;) so the function works just fine.&#60;/p&#62;
&#60;p&#62;As I said before:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Note: This will not stop you being able to access excluded categories directly on their archive page. You should also consider blocking access to these files for spiders using robots.txt and use a plugin such as Redirection to stop direct access to the archive pages.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleanclearconcise on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4960</link>
			<pubDate>Thu, 16 Sep 2010 17:01:50 +0000</pubDate>
			<dc:creator>cleanclearconcise</dc:creator>
			<guid isPermaLink="false">4960@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#38;lt;span class=&#34;categories&#34;&#38;gt;&#38;lt;?php JMD_exclude_category(array(45,40,49,47)); ?&#38;gt;&#38;lt;/span&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4900</link>
			<pubDate>Thu, 16 Sep 2010 12:09:50 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">4900@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;What category ID's did you enter to this function?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php JMD_exclude_category(array(1,2,3,4)); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simply barry on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4859</link>
			<pubDate>Thu, 16 Sep 2010 00:16:37 +0000</pubDate>
			<dc:creator>simply barry</dc:creator>
			<guid isPermaLink="false">4859@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey cleanclearco, &#60;/p&#62;
&#60;p&#62;Have you tried making a menu with just the categories you want listed and then using the custom menu widget? I think it might work for you.&#60;/p&#62;
&#60;p&#62;Good luck.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleanclearconcise on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4852</link>
			<pubDate>Wed, 15 Sep 2010 20:54:49 +0000</pubDate>
			<dc:creator>cleanclearconcise</dc:creator>
			<guid isPermaLink="false">4852@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok I did as you said and I am getting the same results. &#60;a href=&#34;http://www.101river.com&#34; rel=&#34;nofollow&#34;&#62;http://www.101river.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4798</link>
			<pubDate>Wed, 15 Sep 2010 12:18:19 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">4798@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;For widgets:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://justintadlock.com/archives/2008/12/09/widgets-reloaded-wordpress-plugin&#34;&#62;This plugin&#60;/a&#62; will allow you to exclude the categories of your choice from a categories widget.&#60;/p&#62;
&#60;p&#62;For posts, archives and other pages:&#60;/p&#62;
&#60;p&#62;1.) Add this to the end of functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function JMD_exclude_category($excludedcats = array()){
	$count = 0;
	$categories = get_the_category();
	foreach($categories as $category) {
		$count++;
		if ( !in_array($category-&#38;gt;cat_ID, $excludedcats) ) {
			echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_category_link( $category-&#38;gt;term_id ) . &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . sprintf( __( &#38;quot;Posted in %s&#38;quot; ), $category-&#38;gt;name ) . &#38;#39;&#38;quot; &#38;#39; . &#38;#39;&#38;gt;&#38;#39; . $category-&#38;gt;name.&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;

			if( $count != count($categories)-1 ) echo &#38;quot;, &#38;quot;; // so the last category to display won&#38;#39;t show a comma

		}
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2.) Open up single.php and archive.php; replace this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;span class=&#38;quot;categories&#38;quot;&#38;gt;&#38;lt;?php the_category(&#38;#39;, &#38;#39;); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;with this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;span class=&#38;quot;categories&#38;quot;&#38;gt;&#38;lt;?php JMD_exclude_category(array(1,2,3,4)); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;then replace 1,2,3,4 with the ID's of the categories you want to exclude (comma separated).&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Note:&#60;/strong&#62; This will not stop you being able to access excluded categories directly on their archive page. You should also consider blocking access to these files for spiders using robots.txt and use a plugin such as &#60;a href=&#34;http://wordpress.org/extend/plugins/redirection/&#34;&#62;Redirection&#60;/a&#62; to stop direct access to the archive pages.&#60;/p&#62;
&#60;p&#62;Let me know how you get on. :)&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleanclearconcise on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4663</link>
			<pubDate>Mon, 13 Sep 2010 22:47:45 +0000</pubDate>
			<dc:creator>cleanclearconcise</dc:creator>
			<guid isPermaLink="false">4663@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I just don't want them to show up on the home page or anywhere else... as you can see on my home page the categories &#34;featured 1-5&#34; are showing in the menu half way down the page.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.101river.com&#34; rel=&#34;nofollow&#34;&#62;http://www.101river.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;how do I hide these? In the content manager it says &#34;hide&#34; the categories that you do not want to show.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4632</link>
			<pubDate>Mon, 13 Sep 2010 16:17:27 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">4632@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;If you want to &#34;hide&#34; categories, delete them. However you try to &#34;hide&#34; them, a search engine will index the complete site (except where you specify exclusions in robots.txt) and will pick them up.&#60;/p&#62;
&#60;p&#62;I'd recommend using a generic category such as &#34;featured&#34; or &#34;slides&#34; for the slider entries.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleanclearconcise on "Categories will not hide"</title>
			<link>http://www.kriesi.at/support/topic/categories-will-not-hide#post-4473</link>
			<pubDate>Fri, 10 Sep 2010 15:30:24 +0000</pubDate>
			<dc:creator>cleanclearconcise</dc:creator>
			<guid isPermaLink="false">4473@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The categories I use in my slider are the same categories I want hidden in menus... when I tell the system to hide these they still show up. the categories are featured, featured2, featured3, featured4 and featured5. Here is my site &#60;a href=&#34;http://www.101river.com&#34; rel=&#34;nofollow&#34;&#62;http://www.101river.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
