<?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: php in html field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field</link>
		<description>Gravity Support Forums Topic: php in html field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:51:08 +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/php-in-html-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "php in html field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field#post-49350</link>
			<pubDate>Mon, 13 Feb 2012 19:17:36 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">49350@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;PHP cannot be executed in the HTML field as Dana explained.  This is for security reasons.&#60;/p&#62;
&#60;p&#62;However, the HTML field does support WordPress shortcodes.  If you place a shortcode in the HTML field it will be processed and parsed when the form is displayed.&#60;/p&#62;
&#60;p&#62;So another solution is going to be for you to create your own custom WordPress shortcode using PHP.  You can simply encapsulate the functionality you want into your own custom shortcode and then you can place that shortcode in your HTML field.&#60;/p&#62;
&#60;p&#62;This will allow you to execute your custom PHP in a safe and secure way.&#60;/p&#62;
&#60;p&#62;You would place the code for your shortcode either in your themes functions.php file OR create your own custom WordPress plugin and then activate it.&#60;/p&#62;
&#60;p&#62;Here is the WordPress.org Codex page for the Shortcode API:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Shortcode_API&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Shortcode_API&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is a details tutorial on how to create WordPress Shortcodes:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wp.tutsplus.com/tutorials/theme-development/wordpress-shortcodes-the-right-way/&#34; rel=&#34;nofollow&#34;&#62;http://wp.tutsplus.com/tutorials/theme-development/wordpress-shortcodes-the-right-way/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "php in html field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field#post-49343</link>
			<pubDate>Mon, 13 Feb 2012 19:03:47 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">49343@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Since this was answered in your other post, &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/displaying-post-images-in-form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/displaying-post-images-in-form&#60;/a&#62;, I am closing this one.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "php in html field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field#post-49330</link>
			<pubDate>Mon, 13 Feb 2012 18:40:05 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">49330@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to show a post image on the form. I have the attachment ID of the image, but I am not sure what the best way is to actually show it on the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "php in html field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field#post-49288</link>
			<pubDate>Mon, 13 Feb 2012 15:38:29 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">49288@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, sascha,&#60;/p&#62;
&#60;p&#62;No, you cannot put php in an html field. What are you trying to do?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "php in html field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-in-html-field#post-48783</link>
			<pubDate>Wed, 08 Feb 2012 23:04:16 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">48783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is it possible to use php in an html field? Or is there some other workaround?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
