<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<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>WordPress.com Forums &#187; Topic: Editing home page code to exclude a category</title>
		<link>http://en.forums.wordpress.com/topic/editing-home-page-code-to-exclude-a-category</link>
		<description>WordPress.com Forums &#187; Topic: Editing home page code to exclude a category</description>
		<language>en</language>
		<pubDate>Sun, 19 May 2013 22:46:38 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/editing-home-page-code-to-exclude-a-category" rel="self" type="application/rss+xml" />

		<item>
			<title>supportbot on "Editing home page code to exclude a category"</title>
			<link>http://en.forums.wordpress.com/topic/editing-home-page-code-to-exclude-a-category#post-458962</link>
			<pubDate>Thu, 06 May 2010 08:41:19 +0000</pubDate>
			<dc:creator>supportbot</dc:creator>
			<guid isPermaLink="false">458962@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>You did not specify a blog address or reason for posting when you created this topic.</p>
<p>This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the <a href="http://wordpress.org/support/">WordPress.org forums</a>.</p>
<p>If you don't understand the difference between WordPress.com and WordPress.org, you may find <a href="http://support.wordpress.com/com-vs-org/">this information</a> helpful.</p>
<p>If you forgot to include a link to your blog, you can reply and include it below.  It'll help people to answer your question.</p>
<p>This is an automated message.
</p>
]]></description>
					</item>
		<item>
			<title>khalidslife on "Editing home page code to exclude a category"</title>
			<link>http://en.forums.wordpress.com/topic/editing-home-page-code-to-exclude-a-category#post-458961</link>
			<pubDate>Thu, 06 May 2010 08:41:18 +0000</pubDate>
			<dc:creator>khalidslife</dc:creator>
			<guid isPermaLink="false">458961@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Hello,</p>
<p>I am looking to edit two pieces of code exclude a specific category from the homepage only, can you help?</p>
<p>[code]<br />
&#60;div id="latest-products"&#62;<br />
				&#60;h2&#62;Latest Products&#60;/h2&#62;<br />
				&#60;div class="product-container"&#62;<br />
				&#60;?php<br />
				$temp = $wp_query;<br />
				$wp_query= null;<br />
				$wp_query = new WP_Query();<br />
				$wp_query-&#62;query('showposts=12'.'&#38;paged='.$paged);<br />
				while ($wp_query-&#62;have_posts()) : $wp_query-&#62;the_post(); ?&#62;<br />
					&#60;div class="product"&#62;<br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;<br />
							&#60;img class="product-image" src="&#60;?php $img_dir = get_post_custom_values('image'); bloginfo('template_directory'); ?&#62;/timthumb.php?src=&#60;?php echo $img_dir[0]; ?&#62;&#38;w=132&#38;h=106&#38;zc=1" width="132" height="106" /&#62;<br />
						</a><br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;&#60;?php the_title() ?&#62;</a><br />
						&#60;p class="rrp"&#62;RRP: &#60;span&#62;&#163;&#60;?php $rrp = get_post_custom_values('rrp'); echo $rrp[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;p class="price"&#62;Our Price: &#60;span&#62;&#163;&#60;?php $price = get_post_custom_values('price'); echo $price[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;div class="more-info"&#62;<a>"&#62;More Info</a>&#60;/div&#62;<br />
					&#60;/div&#62;&#60;div id="latest-products"&#62;<br />
				&#60;h2&#62;Latest Products&#60;/h2&#62;<br />
				&#60;div class="product-container"&#62;<br />
				&#60;?php<br />
				$temp = $wp_query;<br />
				$wp_query= null;<br />
				$wp_query = new WP_Query();<br />
				$wp_query-&#62;query('showposts=8&#38;orderby=rand'.'&#38;paged='.$paged);<br />
				while ($wp_query-&#62;have_posts()) : $wp_query-&#62;the_post(); ?&#62;<br />
					&#60;div class="product"&#62;<br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;<br />
							&#60;img class="product-image" src="&#60;?php $img_dir = get_post_custom_values('image'); bloginfo('template_directory'); ?&#62;/timthumb.php?src=&#60;?php echo $img_dir[0]; ?&#62;&#38;w=132&#38;h=106&#38;zc=1" width="132" height="106" /&#62;<br />
						</a><br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;&#60;?php the_title() ?&#62;</a><br />
						&#60;p class="rrp"&#62;RRP: &#60;span&#62;&#163;&#60;?php $rrp = get_post_custom_values('rrp'); echo $rrp[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;p class="price"&#62;Our Price: &#60;span&#62;&#163;&#60;?php $price = get_post_custom_values('price'); echo $price[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;div class="more-info"&#62;<a>"&#62;More Info</a>&#60;/div&#62;<br />
					&#60;/div&#62;<br />
[/code]</p>
<p>and </p>
<p>[code]</p>
<p>&#60;div id="best-sellers"&#62;<br />
			&#60;h3&#62;Best Sellers&#60;/h3&#62;<br />
			&#60;?php<br />
				query_posts('posts_per_page=2&#38;orderby=rand');<br />
				while ( have_posts() ) : the_post() ?&#62;<br />
			&#60;div class="product"&#62;<br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;<br />
							&#60;img class="product-image" src="&#60;?php $img_dir = get_post_custom_values('image'); bloginfo('template_directory'); ?&#62;/timthumb.php?src=&#60;?php echo $img_dir[0]; ?&#62;&#38;w=144&#38;h=144&#38;zc=1" width="144" height="144" /&#62;<br />
						</a><br />
						<a>" title="&#60;?php printf( __('%s', 'sandbox'), the_title_attribute('echo=0') ) ?&#62;"&#62;&#60;?php the_title() ?&#62;</a><br />
						&#60;p class="rrp"&#62;RRP: &#60;span&#62;&#163;&#60;?php $rrp = get_post_custom_values('rrp'); echo $rrp[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;p class="price"&#62;Our Price: &#60;span&#62;&#163;&#60;?php $price = get_post_custom_values('price'); echo $price[0]; ?&#62;&#60;/span&#62;&#60;/p&#62;<br />
						&#60;div class="more-info"&#62;<a>"&#62;More Info</a>&#60;/div&#62;</p>
<p>			&#60;/div&#62;<br />
[/code]
</p>
]]></description>
					</item>

	</channel>
</rss>
