<?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 number of published posts per form per user</title>
		<link>https://legacy.forums.gravityhelp.com/topic/limit-number-of-published-posts-per-form-per-user</link>
		<description>Gravity Support Forums Topic: Limit number of published posts per form per user</description>
		<language>en-US</language>
		<pubDate>Mon, 13 Apr 2026 15:13:47 +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-number-of-published-posts-per-form-per-user" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Limit number of published posts per form per user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-number-of-published-posts-per-form-per-user#post-46498</link>
			<pubDate>Mon, 16 Jan 2012 16:56:21 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">46498@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi BusinessOnline,&#60;/p&#62;
&#60;p&#62;This is going to require some custom code. Here is a high level breakdown of how this could be accomplished.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;use gform_pre_render hook to add this customization&#60;/li&#62;
&#60;li&#62;get the current user data like so:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$current_user = wp_get_current_user();&#60;/code&#62;&#60;/pre&#62;
&#60;/li&#62;
&#60;li&#62;in custom function, use WP's &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/get_posts&#34; rel=&#34;nofollow&#34;&#62;get_posts()&#60;/a&#62; to retrieve a list of posts the current user has authored&#60;/li&#62;
&#60;li&#62;check the count() of the returned posts, if greater than your max, output a style block with a style like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[css]
#gform_wrapper_1 { display: none; }&#60;/code&#62;&#60;/pre&#62;
&#60;/li&#62;
&#60;li&#62;this will hide the form so most users won't look any deeper. For clever users, you'll need to add similar functionality to the gform_validation hook as well to prevent the hidden from from being submitted.&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>
		<item>
			<title>Dave on "Limit number of published posts per form per user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-number-of-published-posts-per-form-per-user#post-46458</link>
			<pubDate>Mon, 16 Jan 2012 04:16:36 +0000</pubDate>
			<dc:creator>Dave</dc:creator>
			<guid isPermaLink="false">46458@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have came to Gravity Forms from TDO Mini Forms where I could use throttling options to set a limit of active posts per user over any period of time I wanted. I ideally need to be able to do the same, however I do not need to do it over a period of time. Whenever a user uses a form, the post is always set to their account so that the user is the author of the post they submitted.&#60;/p&#62;
&#60;p&#62;For example. All users will be registered before they can access the form (I already have this set by protecting access to the form with a membership plugin).&#60;/p&#62;
&#60;p&#62;There are two forms that need to limit the number of active (published) posts per user. One form needs to be limited to 1 and the other needs to be limited to 5. How can I check the number of active (published) posts that a user has, or how can I restrict usage of a form based on how many active (published) posts a user already has?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
