badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Alphabetical Archive Listing

#13189
Kelsey
Member

Okay, I used archive.php to create my category archive pages. Where should I put the $args = array( 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC' ); code you provided above? I don’t see the argument that is calling the posts by date to replace it with.

My code is:

<?php
/**
 * Displays the archive section of the theme.
 *
 * @package Theme Horse
 * @subpackage Clean_Retina_Pro
 * @since Clean Retina Pro 1.0
 */
?>

<?php get_header(); ?>

<?php
	/** 
	 * cleanretina_before_main_container hook
	 */
	do_action( 'cleanretina_before_main_container' );
?>

<div id="container" class="wrapper clearfix">
<p>
Feel free to review our bakery pages!
</p>
	<?php
		/** 
		 * cleanretina_main_container hook
		 *
		 * HOOKED_FUNCTION_NAME PRIORITY
		 *
		 * cleanretina_content 10
		 */
		do_action( 'cleanretina_main_container' );
	?>
</div><!-- #container .wrapper -->

<?php
	/** 
	 * cleanretina_after_main_container hook
	 */
	do_action( 'cleanretina_after_main_container' );
	
?>

<?php get_footer(); ?>