<?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 block</title>
		<link>https://legacy.forums.gravityhelp.com/topic/php-block</link>
		<description>Gravity Support Forums Topic: PHP block</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 11:01:54 +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-block" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "PHP block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-block#post-66887</link>
			<pubDate>Wed, 18 Jul 2012 13:15:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66887@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, you don't have to register them for each hook.  Shortcodes are processed in the HTML block.  You don't need to do anything special at all.  Just create your shortcode function and then use the shortcode and you'll be good to go.  &#60;/p&#62;
&#60;p&#62;I started doing that a long time ago when website owners wanted to use PHP in their posts, and I was not comfortable using the PHP Exec plugin to allow that.  Not to mention, the visual editor messes the PHP tags up.  So, I create the shortcode and let them use that.  It works really well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paddelboot on "PHP block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-block#post-66870</link>
			<pubDate>Wed, 18 Jul 2012 12:30:34 +0000</pubDate>
			<dc:creator>paddelboot</dc:creator>
			<guid isPermaLink="false">66870@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds good, I didn't know shortcodes where enabled. But it probably means you'll have to register a shortcode for each individual block, right?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "PHP block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-block#post-66824</link>
			<pubDate>Wed, 18 Jul 2012 08:16:38 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66824@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've run across that too. To work around it, because shortcodes will be processed in the HTML block, I usually create a shortcode in my functions.php or a plugin file, and write the PHP function there.  Then you can insert the shortcode in the HTML block in your Gravity Form.  It will work the same way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paddelboot on "PHP block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-block#post-66821</link>
			<pubDate>Wed, 18 Jul 2012 08:07:40 +0000</pubDate>
			<dc:creator>paddelboot</dc:creator>
			<guid isPermaLink="false">66821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It would be very useful to have a &#34;PHP block&#34; kind of field. I constantly need to display the content of some PHP string in between the form fields.&#60;/p&#62;
&#60;p&#62;Paddelboot
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
