Now, when you click on the Local Businesses link in the category menu, you are shown the most recent post, which is Dentists, because I put that in after Accountants. You can see it here: http://larchmontgazette.com/wp27/category/biz/
I found in the Wordpress codex (http://codex.wordpress.org/Alphabetizing_Posts) a way to alphabetize the output within a category, using a custom template. I created my-businesses-template.php, and put in their code (in red) thusly:
Code:
<?php /* Template Name Posts: My Businesses Template */ ?> <?php global $options; foreach ($options as $value) { if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); } } if ( is_page() ) { global $wp_query; $current_page_id = $wp_query->get_queried_object_id(); } ?> <?php get_header(); ?> <?php // If there are any posts: $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1'); if (have_posts()) : $postcount == 0; ?>
What am I doing wrong? Is it some difference between your index.php, which I used to make my-biz-template.php and the standard WP single post code?