• I am trying to sort the category page in alpha (as opposed to by post date)

    This may be a really simple fix… but I am using a theme that utilizes a category-loop.php. The loop starts with
    <?php while ( have_posts() ) : the_post(); ?>

    And I am assuming that is where I need to place the alpha order call. Here is a link to the full file: HERE

    I am really only utilizing this file for the section starting at line 97.

    Many thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter coyacreative

    (@coyacreative)

    Here is my revised/slimmed down version of the loop-category.php.

    <?php
    while ( have_posts() ) : the_post();
     ?>
        <li><h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
              <?php echo get_post_meta($post->ID, 'description', true); ?>
              <br/><br/></li>
    
    <?php endwhile;  ?>

    Any way to alpha order this? All of my attempts show ALL posts alpha… the code above shows only posts within that category. I just need to alpha order them.

    Any help is much appreciated.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘List posts by Alpha in Category Loop’ is closed to new replies.