Support » Theme: Magazino » How to aplhabetise category listings

  • I need to make the posts appear in alphabetical order in the categories. I think I need to edit category.php but I cannot get this to work?

    I have added this but no effect?

    <?php /* added to alphabetise listings */
    $args = array( 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC' );
    query_posts( $args );
    ?>
    <?php /* Start the Loop */ ?>

    (I want to keep the newest on the homepage though so don’t want to edit the main loop function)

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to aplhabetise category listings’ is closed to new replies.