Hey folks, I am really struggling with this. Here is my site:
The three titles there are posts in category 29 and I have set up a category-29.php template in my theme to provide a different format for this specific page. My problem is that I can not sort this list by the title.
This is my loop:
<?php get_header(); ?> <div class="main"> <div class="content"> <?php query_posts($query_string . '&orderby=title&order=ASC'); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1> ...
This was the line i added to force the sort order:
query_posts($query_string . '&orderby=title&order=ASC');
I know the category-29 template is in use and I know that the above line is taking effect since I can insert other parameters such as put &p=25 in there and i get very different results.
What am i doing wrong here? Any suggestions.