<?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: Multiple Shortcode Parameters for one Checkbox</title>
		<link>https://legacy.forums.gravityhelp.com/topic/multiple-shortcode-parameters-for-one-checkbox</link>
		<description>Gravity Support Forums Topic: Multiple Shortcode Parameters for one Checkbox</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:13:55 +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/multiple-shortcode-parameters-for-one-checkbox" rel="self" type="application/rss+xml" />

		<item>
			<title>Floyd Brown on "Multiple Shortcode Parameters for one Checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-shortcode-parameters-for-one-checkbox#post-58263</link>
			<pubDate>Wed, 09 May 2012 00:36:10 +0000</pubDate>
			<dc:creator>Floyd Brown</dc:creator>
			<guid isPermaLink="false">58263@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm not sure if this is possible, but I'm giving it a try. &#60;/p&#62;
&#60;p&#62;I want to be able to let readers sign up for email updates (connected with MailChimp) for the categories of an individual post. &#60;/p&#62;
&#60;p&#62;So for example, a post is categorized &#34;red&#34; and &#34;blue.&#34;&#60;/p&#62;
&#60;p&#62;A user reading that post would be able to write in their email address, and a hidden checkbox would select categories &#34;red&#34; and &#34;blue.&#34;&#60;/p&#62;
&#60;p&#62;Right now trying to use a shortcode to dynamically populate a checkbox. When there are multiple categories, however, I can't get it to work. Is there any way to insert multiple parameters into one checkbox?&#60;/p&#62;
&#60;p&#62;I'm sure I'm not doing this correctly, but would appreciate if there is a way to multi-select checkboxes. This is what I'm trying right now, listed the terms seperated by &#38;amp;. Not suprisingly, its not working. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ( $terms &#38;amp;&#38;amp; ! is_wp_error( $terms ) ) : 

	$ppr_categories = array();

	foreach ( $terms as $term ) {
		$ppr_categories[] = $term-&#38;gt;name;
	}

	$on_ppr = join( &#38;quot;&#38;amp;&#38;quot;, $ppr_categories );

echo do_shortcode(&#38;#39;[gravityforms id=11 field_values=&#38;quot;categories=&#38;#39; . $on_ppr . &#38;#39;&#38;quot;]&#38;#39;);

endif;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
