<?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-1</link>
		<description>Gravity Support Forums Topic: Counter</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 08:24:37 +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-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Tobe on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter-1#post-178144</link>
			<pubDate>Wed, 20 Mar 2013 12:07:18 +0000</pubDate>
			<dc:creator>Tobe</dc:creator>
			<guid isPermaLink="false">178144@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Thank you that helped me a lot. You made my day :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter-1#post-178098</link>
			<pubDate>Wed, 20 Mar 2013 11:02:43 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">178098@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The way I'm showing you is the same as what you are looking for, but you can still use the shortcode function that Chris created without any modification. So you add that to your functions.php file. So you have the function that will do the work. &#60;/p&#62;
&#60;p&#62;Next you want to add a PHP call in the header file, which would be the second example used on the link I sent you. &#60;/p&#62;
&#60;p&#62;So in your header.php file you would have:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php echo do_shortcode(&#38;#39;[donations form=37]&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would be the PHP &#34;get&#34; you are looking for.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tobe on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter-1#post-177763</link>
			<pubDate>Wed, 20 Mar 2013 04:36:10 +0000</pubDate>
			<dc:creator>Tobe</dc:creator>
			<guid isPermaLink="false">177763@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;br /&#62;
Thank you for pointing out to that link. Shortcodes look easy when I use WYSIWYG, but as for coding  it is confusing me. I just start to have some understanding in php, but addind/creating shortcodes is still not clear for me. For example, I checked the examples in the link you provided, and it just don't make sense to me. (yeah I am such a nooby)&#60;/p&#62;
&#60;p&#62;Is there a way to just add another function, (not to a create shortcode) and an php get command (to call that function) which can be added in the header?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter-1#post-177135</link>
			<pubDate>Tue, 19 Mar 2013 17:00:21 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">177135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can run shortcodes outside of the WordPress loop/body by using PHP. Read their documentation about that here: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/do_shortcode&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/do_shortcode&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tobe on "Counter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counter-1#post-176955</link>
			<pubDate>Tue, 19 Mar 2013 13:12:21 +0000</pubDate>
			<dc:creator>Tobe</dc:creator>
			<guid isPermaLink="false">176955@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;You created a lovely code to create a counter see : &#60;a href=&#34;http://pastebin.com/NSsVZgt8&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/NSsVZgt8&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If I am correct this is a function to create a shortcode.&#60;br /&#62;
I would like to have that counter in my header (header.php) and (shortcodes don't work there)&#60;/p&#62;
&#60;p&#62;As far as I understand I need to add the function in function.php of my theme, and some other line of PHP in my header.php.&#60;/p&#62;
&#60;p&#62;Can you please share an altered code to be used in the header.php?&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;/p&#62;
&#60;p&#62;Tobe
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
