<?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: Retrieving information from page</title>
		<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page</link>
		<description>Gravity Support Forums Topic: Retrieving information from page</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 07:48:30 +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/retrieving-information-from-page" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16282</link>
			<pubDate>Fri, 14 Jan 2011 18:55:27 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">16282@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Exactly! Kudos. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16278</link>
			<pubDate>Fri, 14 Jan 2011 18:29:39 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16278@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I changed echo to return and that did it. It works now,&#60;br /&#62;
&#60;code&#62;&#38;lt;?php echo $attachment[0]; ?&#38;gt;&#60;/code&#62; to&#60;br /&#62;
&#60;code&#62;&#38;lt;?php return $attachment[0]; ?&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16276</link>
			<pubDate>Fri, 14 Jan 2011 18:25:47 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;pre&#62;&#60;code&#62;function my_attachment_image($postid=0, $size=&#38;#39;thumbnail&#38;#39;, $attributes=&#38;#39;&#38;#39;) {
	if ($postid&#38;lt;1) $postid = get_the_ID();
	if ($images = get_children(array(
		&#38;#39;post_parent&#38;#39; =&#38;gt; $postid,
		&#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
		&#38;#39;order&#38;#39; =&#38;gt; &#38;#39;ASC&#38;#39;,
		&#38;#39;orderby&#38;#39; =&#38;gt; &#38;#39;menu_order ID&#38;#39;,
		&#38;#39;numberposts&#38;#39; =&#38;gt; 1,//0 for all
		&#38;#39;post_mime_type&#38;#39; =&#38;gt; &#38;#39;image&#38;#39;,)))
		foreach($images as $image) {
			$attachment=wp_get_attachment_image_src($image-&#38;gt;ID, $size);
			?&#38;gt;&#38;lt;?php echo $attachment[0]; ?&#38;gt;&#38;lt;?php
		}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Smith on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16264</link>
			<pubDate>Fri, 14 Jan 2011 16:40:59 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">16264@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I suspect the issue is that the my_attachment_image() function is &#34;echoing&#34; out the URL instead of just returning it. If you post the code for this function, I can show you how to return the value instead of output it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16253</link>
			<pubDate>Fri, 14 Jan 2011 15:09:44 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16253@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Pagetitle and Url show up and function fine, in the admin for notifications. Only &#34;theimage&#34; shows up on the form before and after submitting, and does not render anything in the admin. This worked fine before, so I do not think that is an issue, and of course, when you use the email form, the url for &#34;theimage&#34;, which is what correct, shows up.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16210</link>
			<pubDate>Fri, 14 Jan 2011 00:44:27 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This did retrieve the information, though it is showing on the top of the form itelf. The way I use this info is to add the information in the notification on the admin side. It is not showing there. This is what shows at the top of my form when submitting. I need to show this in the notification... What I am doing is sending an image along with information&#60;br /&#62;
&#60;code&#62;&#60;a href=&#34;http://demo-four/wp-content/uploads/2010/06/71-337x450.jpg&#34; rel=&#34;nofollow&#34;&#62;http://demo-four/wp-content/uploads/2010/06/71-337x450.jpg&#60;/a&#62;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16192</link>
			<pubDate>Thu, 13 Jan 2011 20:04:40 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16192@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I will work with this, thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16146</link>
			<pubDate>Thu, 13 Jan 2011 14:45:32 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">16146@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render_9&#38;quot;, &#38;quot;update_query&#38;quot;);
function update_query($form){
    global $post;

    $_GET[&#38;#39;pagetitle&#38;#39;] = $post-&#38;gt;post_title;
    $_GET[&#38;#39;theimage&#38;#39;] = my_attachment_image(0, &#38;#39;medium&#38;#39;, &#38;#39;alt=&#38;quot;&#38;#39; . $post-&#38;gt;post_title . &#38;#39;&#38;quot;&#38;#39;);
    $_GET[&#38;#39;Url&#38;#39;] = get_permalink($post-&#38;gt;post_title);

    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Since the form is loaded on page load, but hidden from view, we can add the same parameters to the PHP $_GET/query array, without them having to be in the page URL.&#60;/p&#62;
&#60;p&#62;Make sure to update the &#34;9&#34; in &#34;gform_pre_render_9&#34; to the ID of your form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddiejanzer on "Retrieving information from page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrieving-information-from-page#post-16121</link>
			<pubDate>Thu, 13 Jan 2011 11:03:04 +0000</pubDate>
			<dc:creator>eddiejanzer</dc:creator>
			<guid isPermaLink="false">16121@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;With ajax, I was finally able to embed a form and use a popup. The old method worked (the one that was taught here on Gravity Forms). In order to pull information from the page that a visitor was inquiring on I had this code&#60;br /&#62;
&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;url&#38;#39;); ?&#38;gt;/item-inquiry//?pagetitle=&#38;lt;?php the_title(); ?&#38;gt;&#38;amp;theimage=&#38;lt;?php my_attachment_image(0, &#38;#39;medium&#38;#39;, &#38;#39;alt=&#38;quot;&#38;#39; . $post-&#38;gt;post_title . &#38;#39;&#38;quot;&#38;#39;); ?&#38;gt;&#38;amp;Url=&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; class=&#38;quot;fancybox iframe&#38;quot;&#38;gt;Email us about this item&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;br /&#62;
That worked fine. Now, using ajax and having the modal hidden on the page, I do not know how to retrieve this information. I am using this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;a class=&#38;#39;form&#38;#39; href=&#38;quot;#&#38;quot;&#38;gt;Email us about this item&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;lt;/ul&#38;gt;

&#38;lt;div id=&#38;#39;form-popup&#38;#39;&#38;gt;
&#38;lt;div id=&#38;#39;form&#38;#39;&#38;gt;
&#38;lt;?php gravity_form(2, false, false, false, &#38;#39;&#38;#39;, true); ?&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;url is here, works fine &#60;a href=&#34;http://antiquetemplates.com/demo-four/wonderful-italian-bench-fabric/&#34; rel=&#34;nofollow&#34;&#62;http://antiquetemplates.com/demo-four/wonderful-italian-bench-fabric/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
