WordPress.org

Support

Support » How-To and Troubleshooting » orderby isn’t working

orderby isn’t working

  • Using this code:

    <?php
       if (is_page('partners'))  { ?>
    <?php $temp_query = $wp_query; ?>
    <?php query_posts('cat=10&orderby=title&order=ASC'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <h3><?php the_title(); ?></h3>
    <?php the_content(); ?>
    
    <?php endwhile; ?>
     <?php }
    ?>

    I expected alphabetical. My goal is actually reverse alphabetical, but this isn’t even showing “a” first. View it here:
    http://www32.a2hosting.com/~mpallas/who-we-are/partners/
    NO posts in this category are set to sticky.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘orderby isn’t working’ is closed to new replies.
Skip to toolbar