Display custom taxonomy in DESC within the original loop <p>I have a problem. I would like the have the posts of this loop show in descending order. But for a plugin I have to stick to the original loop. So I can't use new WP_Query or query_posts because this overrides the original loop.</p> <p>This is my loop.</p> <pre><code>&lt;div id="main-filter"&gt; &lt;!-- Start the Loop. --&gt; &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt; &lt;!-- Test if the current post is in category 3. --&gt; &lt;!-- If it is, the div box is given the CSS class "post-cat-three". --&gt; &lt;!-- Otherwise, the div box is given the CSS class "post". --&gt; &lt;?php if ( in_category( '3' ) ) : ?&gt; &lt;div class="post-cat-three"&gt; &lt;?php else : ?&gt; &lt;div class="post post-item"&gt; &lt;?php endif; ?&gt; &lt;!-- Display the Title as a link to the Post's permalink. --&gt; &lt;div class="ref-wrap"&gt; &lt;div class="col-sm-2 thumb-mobile"&gt; &lt;?php the_post_thumbnail(array(200,200)); // Declare pixel size you need inside the array ?&gt; &lt;/div&gt; &lt;div class="col-sm-10"&gt; &lt;div class="entry"&gt; &lt;?php $bedrijf = get_field('naam_bedrijf'); ?&gt; &lt;?php $feest = get_field('feest'); ?&gt; &lt;?php $geschreven = get_field('geschreven_door'); ?&gt; &lt;?php $datum = get_field('datum_referentie'); ?&gt; &lt;?php $tekst = get_field('volledige_tekst'); ?&gt; &lt;?php $link = get_field('mylink'); ?&gt; &lt;?php echo '&lt;p&gt;Bedrijfsnaam: ' . $bedrijf . '&lt;/p&gt;'; ?&gt; &lt;?php $post_object = get_field('mylink'); if( $post_object ): $post = $post_object; setup_postdata( $post ); ?&gt; &lt;p&gt;Feest type: &lt;a style="color:#ff6600" href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/p&gt; &lt;?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?&gt; &lt;?php endif; ?&gt; &lt;?php echo '&lt;p&gt;Naam: ' . $geschreven . '&lt;/p&gt;'; ?&gt; &lt;?php echo '&lt;p&gt;Datum: ' . $datum . '&lt;/p&gt;'; ?&gt; &lt;?php echo '&lt;p class="mobile-j"&gt;' . $tekst . '&lt;/p&gt;'; ?&gt; &lt;?php echo '&lt;p&gt;' . wp_review_show_total() . '&lt;/p&gt;'; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="clear:both;"&gt;&lt;/div&gt; &lt;!-- Display a comma separated list of the Post's Categories. --&gt; &lt;/div&gt; &lt;!-- closes the first div box --&gt; &lt;!-- Stop The Loop (but note the "else:" - see next line). --&gt; &lt;?php endwhile; else : ?&gt; &lt;!-- The very first "if" tested to see if there were any Posts to --&gt; &lt;!-- display. This "else" part tells what do if there weren't any. --&gt; &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;/p&gt; &lt;!-- REALLY stop The Loop. --&gt; &lt;?php endif; ?&gt; &lt;?php wp_pagenavi(); ?&gt; &lt;/div&gt; </code></pre> <p>Is there anyway I can order this loop in DESC?</p> <p>** Little edit: I don't know if this matters but this is the custom taxonomy: referentie_type</p>