<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<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>Gravity Support Forums Topic: Can you filter populate-posts to exclude categories?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories</link>
		<description>Gravity Support Forums Topic: Can you filter populate-posts to exclude categories?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:25:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/can-you-filter-populate-posts-to-exclude-categories" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-63709</link>
			<pubDate>Tue, 26 Jun 2012 21:19:25 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">63709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you figured it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Desmond on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-63696</link>
			<pubDate>Tue, 26 Jun 2012 19:29:42 +0000</pubDate>
			<dc:creator>Desmond</dc:creator>
			<guid isPermaLink="false">63696@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's what worked for me, using the category argument and placing a minus symbol in front of the category ID.&#60;/p&#62;
&#60;p&#62;$posts = get_posts('numberposts=-1&#38;amp;post_status=publish&#38;amp;category=-12,-1&#38;amp;orderby=title&#38;amp;order=ASC');
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-63180</link>
			<pubDate>Thu, 21 Jun 2012 12:26:51 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">63180@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So if you look at the documentation on the get_posts function in WordPress, you will see that it includes options for excluding categories:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Template_Tags/get_posts&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/get_posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I think you have to do it by the category numbers, and it will take a list of comma separated values if memory serves me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Desmond on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-63178</link>
			<pubDate>Thu, 21 Jun 2012 12:22:56 +0000</pubDate>
			<dc:creator>Desmond</dc:creator>
			<guid isPermaLink="false">63178@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is the code that I am using. If you could help me with specific syntax, that would be much appreciated. I want to exclude a category called &#34;Guides&#34;.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pastie.org/4127190&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/4127190&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-62958</link>
			<pubDate>Tue, 19 Jun 2012 08:27:34 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">62958@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What code are you using currently to do this? You will have to change how you pull posts to exclude categories you want excluded. I would have to see how you are grabbing posts first though to be able to help as there are multiple ways to grab post titles.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Desmond on "Can you filter populate-posts to exclude categories?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-filter-populate-posts-to-exclude-categories#post-62929</link>
			<pubDate>Mon, 18 Jun 2012 19:48:54 +0000</pubDate>
			<dc:creator>Desmond</dc:creator>
			<guid isPermaLink="false">62929@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have used the populate-posts method to pre-populate a drop-down field with Post titles. What I would like to do would be to exclude 1 of 9 categories from the drop-down. Specific advice on how to do this?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
