<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tutorial: Flutter Duplicate Fields</title>
	<atom:link href="http://www.doc4design.com/articles/flutter-duplicate-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doc4design.com/articles/flutter-duplicate-fields/</link>
	<description>Advertising and Marketing agency located in Northwest Arkansas providing easily attainable, creative solutions for any outlet in any stage of growth.</description>
	<lastBuildDate>Mon, 08 Mar 2010 18:05:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-404</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Mon, 01 Mar 2010 22:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-404</guid>
		<description>zac, 

Untested but give this a try:

&lt;code&gt;&lt;?php $total = getFieldDuplicates(&#039;mainImage&#039;);?&gt;
&lt;?php for($i = 1; $i &lt; $total+1; $i++):?&gt;
&lt;?php echo get(&#039;mainImage&#039;,$i,1); ?&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>zac, </p>
<p>Untested but give this a try:</p>
<p><pre><code>&lt;?php $total = getFieldDuplicates(&#039;mainImage&#039;);?&gt;
&lt;?php for($i = 1; $i &lt; $total+1; $i++):?&gt;
&lt;?php echo get(&#039;mainImage&#039;,$i,1); ?&gt;</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zac</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-402</link>
		<dc:creator>zac</dc:creator>
		<pubDate>Sun, 28 Feb 2010 04:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-402</guid>
		<description>Hi there and thanks for writing this!  This is the first site I have come across that explains anything and there is very little (NO?!) documentation on the flutter site for this great feature of the plugin.  I am trying to use getFieldDuplicates to echo however many images are uploaded.  It works fine if there are 2 or more images but nothing is shown if only one image is included.  Can someone please help.   Here is what I am trying to use to call the images...

&lt;code&gt;&lt;?php
$total = getFieldDuplicates(&#039;mainImage&#039;,1);
for($i = 1; $i &lt; $total+1; $i++){
echo get(&#039;mainImage&#039;,1,$i);
}?&gt;&lt;/code&gt;

           

        

Thanks for any help!</description>
		<content:encoded><![CDATA[<p>Hi there and thanks for writing this!  This is the first site I have come across that explains anything and there is very little (NO?!) documentation on the flutter site for this great feature of the plugin.  I am trying to use getFieldDuplicates to echo however many images are uploaded.  It works fine if there are 2 or more images but nothing is shown if only one image is included.  Can someone please help.   Here is what I am trying to use to call the images&#8230;</p>
<p><pre><code>&lt;?php
$total = getFieldDuplicates(&#039;mainImage&#039;,1);
for($i = 1; $i &lt; $total+1; $i++){
echo get(&#039;mainImage&#039;,1,$i);
}?&gt;</code></pre></p>
<p>Thanks for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-391</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-391</guid>
		<description>Jesse, 

I was just about to suggest this, though I wasn&#039;t sure if you were on a single.php or not. I will add this to the post, it&#039;s a question we&#039;ve received several times.</description>
		<content:encoded><![CDATA[<p>Jesse, </p>
<p>I was just about to suggest this, though I wasn&#8217;t sure if you were on a single.php or not. I will add this to the post, it&#8217;s a question we&#8217;ve received several times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesse</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-390</link>
		<dc:creator>jesse</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-390</guid>
		<description>I just figured it out.  It was kind of a silly/obvious question to begin with but I think it&#039;s a relevant point for other WordPress Newbies...

In your example you are pulling duplicate fields from a specific post ID.  But to get duplicate fields from the current page, you don&#039;t need the new WP_Query if you are already in the loop.  Because my code is published on a post template, I was already in the following loop:

&lt;code&gt;&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;&lt;/code&gt;

and therefore just had to delete the following to get it to pull only the current page:

&lt;code&gt;&lt;?php $my_query = new WP_Query(&#039;page_id&#039;);
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();
$do_not_duplicate = $post-&gt;ID; ?&gt;&lt;/code&gt;

as well as the subsequent 

&lt;code&gt;&lt;?php  endwhile;?&gt;&lt;/code&gt;

Thanks for your help again.</description>
		<content:encoded><![CDATA[<p>I just figured it out.  It was kind of a silly/obvious question to begin with but I think it&#8217;s a relevant point for other WordPress Newbies&#8230;</p>
<p>In your example you are pulling duplicate fields from a specific post ID.  But to get duplicate fields from the current page, you don&#8217;t need the new WP_Query if you are already in the loop.  Because my code is published on a post template, I was already in the following loop:</p>
<p><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;</code></p>
<p>and therefore just had to delete the following to get it to pull only the current page:</p>
<p><pre><code>&lt;?php $my_query = new WP_Query(&#039;page_id&#039;);
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();
$do_not_duplicate = $post-&gt;ID; ?&gt;</code></pre></p>
<p>as well as the subsequent </p>
<p><code>&lt;?php&nbsp;&nbsp;endwhile;?&gt;</code></p>
<p>Thanks for your help again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-389</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-389</guid>
		<description>Jesse, 

I&#039;ve checked the links and you must have made some updates since this comment. Are you still needing assistance?</description>
		<content:encoded><![CDATA[<p>Jesse, </p>
<p>I&#8217;ve checked the links and you must have made some updates since this comment. Are you still needing assistance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-388</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 16 Feb 2010 15:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-388</guid>
		<description>Sorry... here a few example URLs:

http://cambridgeuplighting.com/quincy-marriot-up-lighting
http://cambridgeuplighting.com/harvard-club-boston-uplighting
http://cambridgeuplighting.com/cambridge-multicultural-arts-center-up-lighting</description>
		<content:encoded><![CDATA[<p>Sorry&#8230; here a few example URLs:</p>
<p><a href="http://cambridgeuplighting.com/quincy-marriot-up-lighting" rel="nofollow">http://cambridgeuplighting.com/quincy-marriot-up-lighting</a><br />
<a href="http://cambridgeuplighting.com/harvard-club-boston-uplighting" rel="nofollow">http://cambridgeuplighting.com/harvard-club-boston-uplighting</a><br />
<a href="http://cambridgeuplighting.com/cambridge-multicultural-arts-center-up-lighting" rel="nofollow">http://cambridgeuplighting.com/cambridge-multicultural-arts-center-up-lighting</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-387</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 16 Feb 2010 15:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-387</guid>
		<description>Major bug:  Every post is pulling every custom field from all posts, rather than that posts&#039; specific ID.  As a result, all photos from all posts are displaying in every single post.

&lt;code&gt;&lt;?php $my_query = new WP_Query($post-&gt;ID);
  while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();
  $do_not_duplicate = $post-&gt;ID; ?&gt;
  
&lt;?php $total = getGroupDuplicates(&#039;slideshowA&#039;);?&gt;
&lt;?php for($i = 1; $i &lt; $total+1; $i++):?&gt;
&lt;?php echo &quot;&lt;li&gt;&quot;;
            echo &quot;&lt;a href=&#039;&quot;;
            if($slideshowA != &#039;&#039;) {
	            echo get(&#039;slideshowA&#039;,$i,1). &quot;&#039;&gt;&quot;;
	        } else {
	        	echo get(&#039;slideshowLi&#039;,$i,1). &quot;&#039;&gt;&quot;;
	        }
            echo &quot;&lt;img src=&#039;&quot; .get(&#039;slideshowLi&#039;,$i,1). &quot;&#039;/&gt;&quot;;
            echo &quot;&lt;/a&gt;&quot;;
            echo &quot;&lt;/li&gt;&quot;; ?&gt;
&lt;?php endfor;?&gt;
&lt;?php  endwhile;?&gt;&lt;/code&gt;

Help! Thanks so much.</description>
		<content:encoded><![CDATA[<p>Major bug:  Every post is pulling every custom field from all posts, rather than that posts&#8217; specific ID.  As a result, all photos from all posts are displaying in every single post.</p>
<p><pre><code>&lt;?php $my_query = new WP_Query($post-&gt;ID);
&nbsp;&nbsp;while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();
&nbsp;&nbsp;$do_not_duplicate = $post-&gt;ID; ?&gt;
&nbsp;&nbsp;
&lt;?php $total = getGroupDuplicates(&#039;slideshowA&#039;);?&gt;
&lt;?php for($i = 1; $i &lt; $total+1; $i++):?&gt;
&lt;?php echo &quot;&lt;li&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;a href=&#039;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($slideshowA != &#039;&#039;) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo get(&#039;slideshowA&#039;,$i,1). &quot;&#039;&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo get(&#039;slideshowLi&#039;,$i,1). &quot;&#039;&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;img src=&#039;&quot; .get(&#039;slideshowLi&#039;,$i,1). &quot;&#039;/&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;/a&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;/li&gt;&quot;; ?&gt;
&lt;?php endfor;?&gt;
&lt;?php&nbsp;&nbsp;endwhile;?&gt;</code></pre></p>
<p>Help! Thanks so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc4</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-357</link>
		<dc:creator>Doc4</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-357</guid>
		<description>Jesse, 

Turn off the &quot;Edit in Place&quot; feature. Settings &gt; Flutter &gt; Other Options &gt; Edit-n-place  - uncheck this box.</description>
		<content:encoded><![CDATA[<p>Jesse, </p>
<p>Turn off the &#8220;Edit in Place&#8221; feature. Settings &gt; Flutter &gt; Other Options &gt; Edit-n-place  &#8211; uncheck this box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-356</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-356</guid>
		<description>I&#039;m one step closer!  The fields display, but the mark-up is messed up.

Instead of displaying a div with class &quot;blockQuote&quot; as specified in my php echo tag, it gives me this:

&lt;code&gt;&lt;div class=&quot; EIP_textbox  EIP_postid330  EIP_mid_632&quot;&gt;&lt;/div&gt;&lt;/code&gt;

And the fields aren&#039;t displayed in the paragraph tags that I wrapper around them in the echo tag.  Thanks again for your help.</description>
		<content:encoded><![CDATA[<p>I&#8217;m one step closer!  The fields display, but the mark-up is messed up.</p>
<p>Instead of displaying a div with class &#8220;blockQuote&#8221; as specified in my php echo tag, it gives me this:</p>
<p><code>&lt;div class=&quot; EIP_textbox&nbsp;&nbsp;EIP_postid330&nbsp;&nbsp;EIP_mid_632&quot;&gt;&lt;/div&gt;</code></p>
<p>And the fields aren&#8217;t displayed in the paragraph tags that I wrapper around them in the echo tag.  Thanks again for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukusdukus</title>
		<link>http://www.doc4design.com/articles/flutter-duplicate-fields/comment-page-1/#comment-355</link>
		<dc:creator>lukusdukus</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.doc4design.com/wp/?p=702#comment-355</guid>
		<description>Boom!

Just like that it works! it sure make much more sense to call the group name rather than the first iteration of the field within that group! but fantastic it works, this will open up wordpress a massive amount for me thanks very much for sharing the knowledge! 

Cheers
Luke</description>
		<content:encoded><![CDATA[<p>Boom!</p>
<p>Just like that it works! it sure make much more sense to call the group name rather than the first iteration of the field within that group! but fantastic it works, this will open up wordpress a massive amount for me thanks very much for sharing the knowledge! </p>
<p>Cheers<br />
Luke</p>
]]></content:encoded>
	</item>
</channel>
</rss>
