Order by title all post in category
-
Can anyone help me with showing all post in category show order by title
My code in gategort here
<?php get_header(); ?>
<?php // Get Theme Options from Database
$theme_options = leeway_theme_options();
?><div id=”wrap” class=”clearfix”>
<section id=”content” class=”primary” role=”main”>
<h2 id=”category-title” class=”archive-title”>
<?php printf(__(‘Category Archives: %s’, ‘leeway’), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’); ?>
</h2><?php if (isset($theme_album)) : $theme_album->ta_albumFormat(); else : ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>get_template_part( ‘content’, $theme_options[‘posts_length’] );
<?php endwhile; else : ?>
<p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
<?php endif; ?>
<?php endif; ?>leeway_display_pagination();
endif; ?>
</section>
<?php get_sidebar(); ?>
</div><?php get_footer(); ?>
- The topic ‘Order by title all post in category’ is closed to new replies.