<?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: How to exclude a single category from being displayed in shop overview</title>
		<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview</link>
		<description>Support Forum - Topic: How to exclude a single category from being displayed in shop overview</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 14:37:26 +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/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview" rel="self" type="application/rss+xml" />

		<item>
			<title>Mya on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-77817</link>
			<pubDate>Fri, 28 Sep 2012 21:47:49 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">77817@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Great, glad it worked.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CyberMona on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-77746</link>
			<pubDate>Fri, 28 Sep 2012 10:03:38 +0000</pubDate>
			<dc:creator>CyberMona</dc:creator>
			<guid isPermaLink="false">77746@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Dude, hi Mia,&#60;/p&#62;
&#60;p&#62;couldn't earlier change the codes in the function.php Today we've done it ... and ... it works. Many thanks for your help!&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Monika
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mya on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-77167</link>
			<pubDate>Mon, 24 Sep 2012 19:38:25 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">77167@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Hopefully, it will. We'll keep this thread open until you do. &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CyberMona on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-77104</link>
			<pubDate>Mon, 24 Sep 2012 11:13:00 +0000</pubDate>
			<dc:creator>CyberMona</dc:creator>
			<guid isPermaLink="false">77104@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Dude,&#60;/p&#62;
&#60;p&#62;thanks for your reply. We will try to follow your advises and let you know if it works. &#60;/p&#62;
&#60;p&#62;Have a nice day&#60;br /&#62;
Monika
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-77052</link>
			<pubDate>Mon, 24 Sep 2012 05:42:25 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">77052@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;1) Add following code to functions.php (insert it at the very bottom):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/**
* This code should be added to functions.php of your theme
**/
add_filter( &#38;#39;pre_get_posts&#38;#39;, &#38;#39;custom_pre_get_posts_query&#38;#39; );

function custom_pre_get_posts_query( $q ) {

if ( ! $q-&#38;gt;is_main_query() ) return;
if ( ! $q-&#38;gt;is_post_type_archive() ) return;

$q-&#38;gt;set( &#38;#39;tax_query&#38;#39;, array(array(
&#38;#39;taxonomy&#38;#39; =&#38;gt; &#38;#39;product_cat&#38;#39;,
&#38;#39;field&#38;#39; =&#38;gt; &#38;#39;slug&#38;#39;,
&#38;#39;terms&#38;#39; =&#38;gt; array( &#38;#39;tshirts&#38;#39; ),
&#38;#39;operator&#38;#39; =&#38;gt; &#38;#39;NOT IN&#38;#39;
)));

remove_filter( &#38;#39;pre_get_posts&#38;#39;, &#38;#39;custom_pre_get_posts_query&#38;#39; );

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and instead of &#34;tshirts&#34; enter your custom category slug.&#60;/p&#62;
&#60;p&#62;2) Since the latest Abundance version (Abundance 1.5) the order is determined by your woocommerce settings. Following two lines in abundance\includes\helper-templates.php set the default product order:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$order = get_option(&#38;#39;woocommerce_default_catalog_orderby&#38;#39;);
		if(!$order) $order = &#38;quot;menu_order&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can change the catalog order on the woocommerce settings page or you can &#34;hardcode&#34; the order by replacing the code above with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$order = &#38;quot;menu_order&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(you can use other order parameters too). In addition you can replace following code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;orderby&#38;#39; =&#38;gt; $order,
			&#38;#39;order&#38;#39; =&#38;gt; &#38;#39;desc&#38;#39;,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;orderby&#38;#39; =&#38;gt; $order,
			&#38;#39;order&#38;#39; =&#38;gt; &#38;#39;asc&#38;#39;,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;`&#60;br /&#62;
if you prefer an ascending order.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CyberMona on "How to exclude a single category from being displayed in shop overview"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-a-single-category-from-being-displayed-in-shop-overview#post-76971</link>
			<pubDate>Sun, 23 Sep 2012 08:35:17 +0000</pubDate>
			<dc:creator>CyberMona</dc:creator>
			<guid isPermaLink="false">76971@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Dear support staff,&#60;/p&#62;
&#60;p&#62;I need your help&#60;/p&#62;
&#60;p&#62;1. I am just battling with the question how to exclude a single category from being displayed in the shop overview because I want this special category only (!) be shown on a separate page built with the Abundance theme builder. Only there this special products should be diplayed with the help of the rotating product gallery.&#60;/p&#62;
&#60;p&#62;Can you help me? What is to do?&#60;/p&#62;
&#60;p&#62;2. question: How can I determine in which order products are displayed in the rotating product gallery? Couldn't find a way to sway it.&#60;/p&#62;
&#60;p&#62;Thanks for helping&#60;br /&#62;
best regards&#60;br /&#62;
Monika
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
