Written in response to Custom Taxonomy Listings:
Ok, I have gotten brands listing on a listing page with this code
now im trying to figure out how to order results on a brand page alphabetically as well as trying to figure out how i can list a-z and when a letter is clicked, return all brands...
<?php
/*Template Name: brands directory*/
?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="container">
<div id="content_listing">
<ul>
<?php $recent = new WP_Query('post_type=brands&posts_per_page=100'); while($recent->have_posts()) : $recent->the_post();?>
<li>
<div class="listing_thumb"><?php the_post_thumbnail( $size, $attr ); ?></div>
<?php the_title( '<h2><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>
<?php echo get_the_term_list( $post->ID, 'Departments', 'Departments: ', ', ', '' ); ?><br>
<?php echo get_the_term_list( $post->ID, 'Store', 'Store: ', ', ', '' ); ?><br>
<?php echo get_the_term_list( $post->ID, 'Location', 'Location: ', ', ', '' ); ?><br>
<?php echo get_the_term_list( $post->ID, 'Categories', 'Categories: ', ', ', '' ); ?>
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<div>' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php get_footer(); ?>
now im trying to figure out how to order results on a brand page alphabetically as well as trying to figure out how i can list a-z and when a letter is clicked, return all brands...
Updated: 07/07/12 11:42am
