<?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: Checkboxes and Multiple Fields in wp_postmeta - How to Display Values on a Post?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/checkboxes-and-multiple-fields-in-wp_postmeta-how-to-display-values-on-a-post</link>
		<description>Gravity Support Forums Topic: Checkboxes and Multiple Fields in wp_postmeta - How to Display Values on a Post?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:26:51 +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/checkboxes-and-multiple-fields-in-wp_postmeta-how-to-display-values-on-a-post" rel="self" type="application/rss+xml" />

		<item>
			<title>mattriggins on "Checkboxes and Multiple Fields in wp_postmeta - How to Display Values on a Post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checkboxes-and-multiple-fields-in-wp_postmeta-how-to-display-values-on-a-post#post-45832</link>
			<pubDate>Mon, 09 Jan 2012 00:47:54 +0000</pubDate>
			<dc:creator>mattriggins</dc:creator>
			<guid isPermaLink="false">45832@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd like to know about this as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ichris on "Checkboxes and Multiple Fields in wp_postmeta - How to Display Values on a Post?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checkboxes-and-multiple-fields-in-wp_postmeta-how-to-display-values-on-a-post#post-44256</link>
			<pubDate>Fri, 16 Dec 2011 16:09:51 +0000</pubDate>
			<dc:creator>ichris</dc:creator>
			<guid isPermaLink="false">44256@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've tried searching but haven't turned anything up, so apologies if I missed a previous question.&#60;/p&#62;
&#60;p&#62;I have a checkbox field that allows people to choose multiple meal options (breakfast, lunch, supper, etc.) which maps to a custom_field &#34;meal-options&#34;. How do I then output all the options they might choose? Right now my code just spits out the first one. I know I'm missing some sort of loop but not sure how to do it properly.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h4&#38;gt;Meal Options Included&#38;lt;/h4&#38;gt;
&#38;lt;p&#38;gt;
&#38;lt;?php $mealoptions = get_post_meta($post-&#38;gt;ID,&#38;#39;meal-options&#38;#39;, true);
if ($mealoptions == &#38;#39;false&#38;#39;) {
echo &#38;quot;Not at this time.&#38;quot;;
} else {
echo get_post_meta($post-&#38;gt;ID,&#38;#39;meal-options&#38;#39;, true);
}
?&#38;gt;
&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is obviously part of a larger custom post type file.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
