<?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: Counter</title>
		<link>https://legacy.forums.gravityhelp.com/topic/counter</link>
		<description>Gravity Support Forums Topic: Counter</description>
		<language>en-US</language>
		<pubDate>Wed, 15 Apr 2026 06:40:06 +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/counter" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-193592</link>
			<pubDate>Mon, 01 Apr 2013 21:36:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">193592@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad that worked for you.  Thanks for the update Nick.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-193294</link>
			<pubDate>Mon, 01 Apr 2013 16:30:46 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">193294@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, perfect. Thanks a lot!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-192075</link>
			<pubDate>Sun, 31 Mar 2013 21:28:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">192075@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nick, try replacing line 46 with this line:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$guests = RGFormsModel::get_leads($form_id, &#38;#39;&#38;#39;, &#38;#39;&#38;#39;, &#38;#39;&#38;#39;, 0, 1000, null, null, false, null, null);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The 1000 in there will be the limit to the number of records returned.  It's 30 by default. Give that code a shot and see if it works accurately.  If not, send me a WordPress admin login and I will take a look at it live.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-190337</link>
			<pubDate>Sat, 30 Mar 2013 03:59:58 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">190337@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Chris for reopening the topic.&#60;/p&#62;
&#60;p&#62;The counter is used on &#60;a href=&#34;http://www.doro-und-nick.de&#34; rel=&#34;nofollow&#34;&#62;http://www.doro-und-nick.de&#60;/a&#62;. The website is password-protected.&#60;/p&#62;
&#60;p&#62;guest-username: hochzeit&#60;br /&#62;
password: 31026092 &#60;/p&#62;
&#60;p&#62;Initially the counter worked beautifully and summed up all entries to the correct total. From the amount of round about 50 people in total (don't know exactly, it may have happened from the start), the counter kept adding new entries to the total, but not according to their actual number. According to the GF entries in WP backend we currently have 61 adults and 13 children attending the wedding, while the counter only displays 48 adults and 10 children. &#60;/p&#62;
&#60;p&#62;Here is a link to my functions.php. The Counter snippet starts at line 36. &#60;a href=&#34;http://pastie.org/7159946&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/7159946&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you need login data to FTP or WP backend (i.e. to check the form entries), please let me know.&#60;/p&#62;
&#60;p&#62;Cheers Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-189902</link>
			<pubDate>Fri, 29 Mar 2013 21:01:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">189902@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Reopened so Nick can ask further questions here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-158885</link>
			<pubDate>Sat, 02 Mar 2013 13:23:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">158885@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-154967</link>
			<pubDate>Tue, 26 Feb 2013 08:58:08 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">154967@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris. This is brilliant, exactly what i was looking for. Thanks a lot for your awesome support!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-154537</link>
			<pubDate>Mon, 25 Feb 2013 22:38:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">154537@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It looks like you're doing all the formatting in the widget to surround the numbers.  It might be easier to put all that text in this function, so instead of just returning a number (and now you need two numbers) you could return everything, all formatted for output.  You would return a string like &#34;So far X adults and Y kids are attending the wedding&#34; rather than a number of adults, which is what you are doing now. Take a look at this code: &#60;a href=&#34;http://pastebin.com/BU61sbjr&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/BU61sbjr&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(I removed the $numeric_amount line since you were never using that variable anywhere)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-154024</link>
			<pubDate>Mon, 25 Feb 2013 07:02:11 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">154024@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, thanks for your help. Indeed I was using the wrong shortcode. Additionally WP Debug displayed an error based on wrong customizing in line 41, where i had changed &#34;$form_id = $atts['form'];&#34; to &#34;$form_id = $atts['1'];&#34;. After changing it works beautifully now. Here is the fixed snippet for the counter: &#60;a href=&#34;http://pastie.org/6333047&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/6333047&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Just a final question: My form asks for the number of adults (field id 2) and children (field id 5). How do I have to extend the snippet to get the value for field id 5 as well - not added to the value of field id 2 but separated. I would like to display the guest counter like &#34;So far X adults and Y kids are attending the wedding&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter#post-152743</link>
			<pubDate>Sat, 23 Feb 2013 01:07:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">152743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Are you using the shortcode like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
[guests form=1]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you enable WP_DEBUG in your installation, you might be able to spot where this is going wrong.&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/WP_DEBUG&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/WP_DEBUG&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
