<?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: Entries Count for certain set of date range</title>
		<link>https://legacy.forums.gravityhelp.com/topic/entries-count-for-certain-set-of-date-range</link>
		<description>Gravity Support Forums Topic: Entries Count for certain set of date range</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 20:42:35 +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/entries-count-for-certain-set-of-date-range" rel="self" type="application/rss+xml" />

		<item>
			<title>enclave on "Entries Count for certain set of date range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/entries-count-for-certain-set-of-date-range#post-201668</link>
			<pubDate>Mon, 08 Apr 2013 21:48:41 +0000</pubDate>
			<dc:creator>enclave</dc:creator>
			<guid isPermaLink="false">201668@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I'm fairly new on how to use this. Can you provide the complete PHP code so that I can put it in a functions.php or create a shortcode out of it so that I can use it.&#60;/p&#62;
&#60;p&#62;Cheers Chris, you rock the GF support!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Entries Count for certain set of date range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/entries-count-for-certain-set-of-date-range#post-184187</link>
			<pubDate>Mon, 25 Mar 2013 14:03:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">184187@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The Gravity Forms function get_form_counts accepts just one argument: form ID.  There is no filtering possible there.  Instead, I would use the get_lead_count function.  Here are the arguments you can use with that function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
get_lead_count($form_id, $search, $star=null, $read=null, $start_date=null, $end_date=null, $status=null)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can add your dates to filter by as parameters sent to that function.&#60;/p&#62;
&#60;p&#62;To get the lead counts for all forms on the site, include that function in a loop to loop through all your forms.    You can use RGFormsModel::get_forms(); to get a list of all forms.   You can call it like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$forms = RGFormsModel::get_forms(1, &#38;quot;ID ASC&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will return an array of all active forms sorted by ID ascending.  Then you can loop through all the IDs and call your get_lead_count function.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>enclave on "Entries Count for certain set of date range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/entries-count-for-certain-set-of-date-range#post-183651</link>
			<pubDate>Mon, 25 Mar 2013 01:28:56 +0000</pubDate>
			<dc:creator>enclave</dc:creator>
			<guid isPermaLink="false">183651@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I found this pastie related to how to display an total number of Entries for a particular GF ID.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/2051574&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2051574&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;1. Date range&#60;br /&#62;
However, I was wondering how do I make so that I can filter this for a certain number of days e.g. 30 days, 60 days. Manual code insertion is good for now.&#60;/p&#62;
&#60;p&#62;2. Include the list of all forms on website&#60;br /&#62;
How do I list down the total number of entries for all forms (So, that I don't have to put 10 codes for 10 forms).
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
