WyrusTaaruz adlı üyeden alıntı: mesajı görüntüle
Örnek olarak dizi sitesinin kategorisi olan the simpsons a tıkladığım zaman butun simpsons kategorisinin postlarını sıralıyor. ama id ye göre sıralıyor ben bunu yazının başlığına göre alfabetik sıralamak istiyorum. loop.php nin içeriği şu şekilde:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="resimKapsayici"> <?php foreach (get_the_category() as $cat) : ?> <a href="<?php the_permalink() ?>"> <img width="170" height="85" src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></a> <a class="resimYazisi" href="<?php the_permalink() ?>"><b><center><?php echo the_title(); ?></center></b></a> </p> <?php endforeach; ?> </div> <?php endwhile; else:?> <div class="kutu error">Aradığınız içerik bulunamadı.</div><?php endif; ?>

query_posts('orderby'=> 'title', 'order' => 'ASC');
ile yapabilirsiniz..

<?php 
query_posts('orderby'=> 'title', 'order' => 'ASC');
if (have_posts()) : while (have_posts()) : the_post(); ?>          <div class="resimKapsayici">    <?php foreach (get_the_category() as $cat) : ?>  <a href="<?php the_permalink() ?>"> <img width="170" height="85" src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></a>  <a class="resimYazisi" href="<?php the_permalink() ?>"><b><center><?php echo the_title(); ?></center></b></a> </p>  <?php endforeach; ?> </div>           <?php endwhile; else:?>   <div class="kutu error">Aradığınız içerik bulunamadı.</div><?php endif; ?>