<?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: Limit Query based on User Information</title>
		<link>https://legacy.forums.gravityhelp.com/topic/limit-query-based-on-user-information</link>
		<description>Gravity Support Forums Topic: Limit Query based on User Information</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 10:54:54 +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/limit-query-based-on-user-information" rel="self" type="application/rss+xml" />

		<item>
			<title>curtismchale on "Limit Query based on User Information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-query-based-on-user-information#post-34015</link>
			<pubDate>Wed, 31 Aug 2011 10:57:54 +0000</pubDate>
			<dc:creator>curtismchale</dc:creator>
			<guid isPermaLink="false">34015@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just came up with something a bit hacky but it works. I'm setting a transient with the value on the form submission just before the one I need to filter. The transient is the data I need and is available early enough that I can use it in my query.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>curtismchale on "Limit Query based on User Information"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-query-based-on-user-information#post-33997</link>
			<pubDate>Wed, 31 Aug 2011 01:09:32 +0000</pubDate>
			<dc:creator>curtismchale</dc:creator>
			<guid isPermaLink="false">33997@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've hacked the GF CPT plugin to display posts (instead of taxonomies) in the dropdown so I can save a post 2 post relation. The data set I'm dealing with is huge (will be 20,000 plus items - all schools in the US) so I'd like to limit things.&#60;/p&#62;
&#60;p&#62;My first thought is to get the state of the current user (which we collected earlier on the site in a custom profile field) but it seems that $current_user isn't available when we populate the field in  the code below.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://gist.github.com/1182856&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/1182856&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Limiting the query manually by state works fine (as in I just type the meta_key and meta_value in). Anyone know how I can get the meta_value in to the function so I can limit the query to something reasonable?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
