カテゴリーページで特定メタキーの値でソート
<?php $cat = get_query_var( 'cat' ); global $query_string; query_posts($query_string . "&cat='.$cat.'&orderby=meta_value&meta_key=date2&order=DESC"); ?> <?php $category_description = category_description(); if ( ! empty( $category_description ) ) echo '<div class="archive-meta">' . $category_description . '</div>'; get_template_part( 'loop', 'category' ); ?> <?php wp_reset_query();?>