<?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: displaying post images in form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/displaying-post-images-in-form</link>
		<description>Gravity Support Forums Topic: displaying post images in form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:10:56 +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/displaying-post-images-in-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "displaying post images in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/displaying-post-images-in-form#post-49351</link>
			<pubDate>Mon, 13 Feb 2012 19:18:19 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">49351@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@sascha Be sure to check out my response to your other post also.  It provides another way to accomplish what you are trying to do using the shortcode functionality in WordPress.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "displaying post images in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/displaying-post-images-in-form#post-49332</link>
			<pubDate>Mon, 13 Feb 2012 18:42:25 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">49332@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Dana,&#60;br /&#62;
that answered my other question too! I will give this a shot.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "displaying post images in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/displaying-post-images-in-form#post-49300</link>
			<pubDate>Mon, 13 Feb 2012 16:33:08 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">49300@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, sascha,&#60;/p&#62;
&#60;p&#62;You can use the Gravity Forms hook &#34;gform_field_input&#34; (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_input)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_input)&#60;/a&#62;. This hook allows you to completely write the &#38;lt;input&#38;gt; tag for one of the fields on your form. In this hook, you can call the wp_get_attachment_image function with your attachment id. That function returns the full &#38;lt;input&#38;gt; tag, so you can simply return that and your new field will show. &#60;/p&#62;
&#60;p&#62;Below is an example I created to do this. Take a look and let me know if you have questions.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_field_input&#38;quot;, &#38;quot;display_attachment&#38;quot;, 10, 5);
function display_attachment($input, $field, $value, $lead_id, $form_id)
{
	//because this will fire for every form/field, only do it when it is the specific form and field
	if ($form_id == 23 &#38;amp;&#38;amp; $field[&#38;quot;id&#38;quot;] == 12)
	{
		$input = wp_get_attachment_image(114);
		return $input;
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sascha on "displaying post images in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/displaying-post-images-in-form#post-48787</link>
			<pubDate>Wed, 08 Feb 2012 23:15:20 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">48787@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to display post images in a GF form? One of my forms relates to the images of a post. I know the post ID/attachment ID, so I can call for instance wp_get_attachment_image() to display the image. Is there a way to display an image for instance in an HTML field or similar?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
