<?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: Template Tag To Show Recent Polls</title>
		<link>https://legacy.forums.gravityhelp.com/topic/template-tag-to-show-recent-polls</link>
		<description>Gravity Support Forums Topic: Template Tag To Show Recent Polls</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:28:21 +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/template-tag-to-show-recent-polls" rel="self" type="application/rss+xml" />

		<item>
			<title>vegaskev on "Template Tag To Show Recent Polls"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/template-tag-to-show-recent-polls#post-282450</link>
			<pubDate>Tue, 28 May 2013 03:38:39 +0000</pubDate>
			<dc:creator>vegaskev</dc:creator>
			<guid isPermaLink="false">282450@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Chris.  Hope you had a great Memorial Weekend!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Template Tag To Show Recent Polls"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/template-tag-to-show-recent-polls#post-277139</link>
			<pubDate>Sat, 25 May 2013 22:39:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">277139@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like this is the function you want (from polls.php):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// returns the results in an array of HTML formatted data
public static function gpoll_get_results($formid, $display_field = &#38;quot;0&#38;quot; /* zero = all fields */, $style = &#38;quot;green&#38;quot;, $show_percentages = true, $show_counts = true, $lead = array()) {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You would call it like this in your template file, with the appropriate arguments:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$results = GFPolls::gpoll_get_results( arguments ...);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>vegaskev on "Template Tag To Show Recent Polls"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/template-tag-to-show-recent-polls#post-273743</link>
			<pubDate>Fri, 24 May 2013 14:51:25 +0000</pubDate>
			<dc:creator>vegaskev</dc:creator>
			<guid isPermaLink="false">273743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking to create a div on my home page which will show the results of some of the most recent polls.  I'm thinking I will show the 4 most recent poll results...not sure (depends on how I style it I guess to determine how much I can fit in the space designated for the div).  I'm looking for something like this..&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo get_gf_polls_recent($results -&#38;gt;(4)) ?&#38;gt;&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;or something to that effect.  Is this doable?  If so, what would the template tags be?  Thanks in advance.  Great plugin add-on by the way...I love it!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
