<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ruben Sargsyan &#187; categories</title>
	<atom:link href="http://rubensargsyan.com/tag/categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubensargsyan.com</link>
	<description>Personal Website</description>
	<lastBuildDate>Thu, 01 Dec 2011 19:15:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Modify the categories from WordPress default widget &#8220;Categories&#8221;</title>
		<link>http://rubensargsyan.com/modify-the-categories-from-wordpress-default-widget-categories/</link>
		<comments>http://rubensargsyan.com/modify-the-categories-from-wordpress-default-widget-categories/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 17:16:34 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=624</guid>
		<description><![CDATA[I have a post about how to exclude the categories from WordPress default widget &#8220;Categories&#8221;. Now I&#8217;d like to bring to your attention how to modify the categories from WordPress default widget &#8220;Categories&#8221; for the users who probably doesn&#8217;t know WordPress coding so good. The solution is the following: add this code in the file [...]]]></description>
			<content:encoded><![CDATA[<p>I have a post about <a href="http://rubensargsyan.com/exclude-categories-from-the-default-widget-categories/" target="_blank">how to exclude the categories from WordPress default widget &#8220;Categories&#8221;</a>. Now I&#8217;d like to bring to your attention how to modify the categories from WordPress default widget &#8220;Categories&#8221; for the users who probably doesn&#8217;t know WordPress coding so good.<span id="more-624"></span> The solution is the following: add this code in the file functions.php of the using theme:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> modify_widget_categories<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$include</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;3,6,18&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// The IDs of the including categories</span>
  <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;include&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$include</span> <span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;hide_empty&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// If it is 0 it will show the empty categories as well</span>
&nbsp;
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$args</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;widget_categories_args&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;modify_widget_categories&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You can find the full list of parameters to modify the widget categories here: <a href="http://codex.wordpress.org/Function_Reference/get_categories#Default_Usage" target="_blank">http://codex.wordpress.org/Function_Reference/get_categories#Default_Usage<br />
</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/modify-the-categories-from-wordpress-default-widget-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exclude categories from the default widget &#8220;Categories&#8221;</title>
		<link>http://rubensargsyan.com/exclude-categories-from-the-default-widget-categories/</link>
		<comments>http://rubensargsyan.com/exclude-categories-from-the-default-widget-categories/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 08:37:51 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=298</guid>
		<description><![CDATA[When building a WordPress site, there are a lot of different bits and bobs to put in place before the theme, and your site, is up and running. Of course, one of the most important parts of your site are your widgets, as they help to provide useful links and sections down your sidebars for [...]]]></description>
			<content:encoded><![CDATA[<p>When building a WordPress  site, there are a lot of different bits and bobs to put in place before the theme, and your site, is up and running. Of course, one of the most important parts of your site are your widgets, as they help to provide useful links and sections down your sidebars for any new visitors. Of course, one of the most common, especially if you&#8217;re a site with blog or journalistic content, is going to be your categories list.</p>
<p>So, say you&#8217;ve got some categories you use privately so you know which posts you used to talk about your IMAP email server, and which ones you used to talk about the times you play Foxy bingo <strong>(<a href="http://www.foxybingo.com/" target="_blank">www.foxybingo.com</a>)</strong>. If you don&#8217;t want these categories to show up, but you do want &#8220;everyday&#8221;, &#8220;going out&#8221;, &#8220;thoughts on politics&#8221; and such to show without costing you the entire widget, there is a solution. Read on to learn how to sort this issue.<span id="more-298"></span></p>
<p>To exclude categories from WordPress default widget &#8220;Categories&#8221;, add this code in the file functions.php of the using theme:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> exclude_widget_categories<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$exclude</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;3,6,18&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// The IDs of the excluding categories</span>
  <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;exclude&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$exclude</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$args</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;widget_categories_args&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;exclude_widget_categories&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The method to exclude the categories from the widget is better, as it is in the file of the theme and it will work after the updating WordPress versions.</p>
<p>After the widget, time to deal with your hosting. Learn more about <a href="http://www.webhostingsearch.com/wordpress-hosting.php" target="_blank">best wordpress host</a> providers at WebHostingSearch.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/exclude-categories-from-the-default-widget-categories/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

