Custom tag template to list posts in ASC order
Instead of creating a new query, consider reusing the existing global query: <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <div class=”container”> Then, to adjust the order, adjust the global query object by hooking into the pre_get_posts hook: /** * Alters the tag archive query to sort ascending. … Read more