<div dir="ltr">The duplication is normal. A sticky post is supposed to show up twice.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 12:47 PM, Phillip Wells <span dir="ltr"><<a href="mailto:phillipwells@hotmail.co.nz" target="_blank">phillipwells@hotmail.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi i am developing my own theme and i have ran into an issue i am confused with where my sticky posts appear as the first outputted posts and they appear again about halfway through where they would be placed if they were not sticky posts. I am not sure how to get rid of this duplication. <div>
<br></div><div>The code i am using is below:</div><div><br></div><div><div><?php if (have_posts()) : ?></div><div><br></div><div><span style="white-space:pre-wrap">          </span><?php while (have_posts()) : the_post(); ?></div>
<div><span style="white-space:pre-wrap">                          </span><div <?php post_class(); ?> id="post-<?php the_ID(); ?>"></div><div>                  <h2 class="post_heading"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'platinum'), the_title_attribute('echo=0')); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h2></div>
<div>                  <div class="meta">Posted in <?php printf(__('in %s', 'platinum'), get_the_category_list(', ')); ?> | Date: <?php the_time(__('F jS, Y', 'platinum')) ?>&nbsp;|&nbsp;Posted by <?php the_author_posts_link(); ?>&nbsp;|&nbsp;<?php the_tags(__('Tags:', 'platinum') . ' ', ', ', '<br />'); ?>&nbsp;|&nbsp;<?php comments_popup_link(__('No comments', 'platinum'), __('1 comment', 'platinum'), __('% comments', 'platinum'), '', __('comments Closed', 'platinum') ); ?></div></div>
<div>                    </div><div><span style="white-space:pre-wrap">                                       </span> </div><div><span style="white-space:pre-wrap">                                        </span> <?php /* The post thumbnail */</div><div><span style="white-space:pre-wrap">                               </span>if ( has_post_thumbnail( get_the_ID() ) ) { ?></div>
<div><span style="white-space:pre-wrap">                          </span><div class="image_frame image_fl"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'graphene' ), the_title_attribute( 'echo=0' ) ); ?>"></div>
<div><span style="white-space:pre-wrap">                                          </span><?php the_post_thumbnail( apply_filters( 'platinum_excerpt_thumbnail_size', 'thumbnail' ) ); ?></div><div><span style="white-space:pre-wrap">                                    </span></a></div></div>
<div><span style="white-space:pre-wrap">                                  </span><?php</div><div><span style="white-space:pre-wrap">                         </span>} else {</div><div><span style="white-space:pre-wrap">                                 </span>echo platinum_get_post_image( get_the_ID(), apply_filters( 'platinum_excerpt_thumbnail_size', 'thumbnail' ), 'excerpt' );<span style="white-space:pre-wrap">       </span></div>
<div><span style="white-space:pre-wrap">                          </span>}</div><div><span style="white-space:pre-wrap">                                </span>?></div><div>                    </div><div><span style="white-space:pre-wrap">                                 </span><?php the_content(__('<span class="more float_r"></span>', 'platinum')); ?><br /><p class="postmetadata"><?php the_tags(__('Tags:', 'platinum') . ' ', ', ', '<br />'); ?> <?php edit_post_link(__('Edit this post', 'platinum'), '', ''); ?></p></div>
<div>                    </div><div>                    <div class="cleaner"></div></div><div><span style="white-space:pre-wrap">                           </span></div></div><div><span style="white-space:pre-wrap">                             </span><?php endwhile; ?></div>
<div><div class="post"></div><div><span style="white-space:pre-wrap">         </span><div class="navigation"></div><div><span style="white-space:pre-wrap">                 </span><div class="alignleft" style="float:left;"><?php next_posts_link(__('&laquo; Older Entries', 'platinum')) ?></div></div>
<div><span style="white-space:pre-wrap">                  </span><div class="alignright" style="float:right;"><?php previous_posts_link(__('Newer Entries &raquo;', 'platinum')) ?></div></div>
<div><span style="white-space:pre-wrap">          </span></div></div><div><br></div><div><span style="white-space:pre-wrap">    </span><?php else : ?></div><div><br></div><div><span style="white-space:pre-wrap">           </span><h2 class="center"><?php _e('Not Found', 'platinum'); ?></h2></div>
<div><span style="white-space:pre-wrap">          </span><p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'platinum'); ?></p></div><div>
<span style="white-space:pre-wrap">             </span><?php get_search_form(); ?></div><div><br></div><div><span style="white-space:pre-wrap">       </span><?php endif; ?></div></div><div><br></div><div>I have been searching everywhere for an answer but i cannot find one. I have even tried searching the twenty fourteen theme and i cannot see what i am doing wrong.</div>
                                          </div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>