• Resolved christinaleans

    (@christinaleans)


    Any advice on how I could display the terms in a custom order rather than alphabetically?

    This is how I’m displaying the terms currently:

    add_action( 'genesis_before_loop', 'nabm_isotope_filter' );
    function nabm_isotope_filter() {
    	if ( is_post_type_archive( 'videos' ) )
    		$terms = get_terms( 'topic' );
    		$count = count($terms); $i=0;
    		if ($count > 0) { ?>
    			<ul id="video-cats" class="filter clearfix">
    				<li><a href="#" class="active" data-filter="*"><span><?php _e('All', 'genesis'); ?></span></a></li>
    				<?php foreach ($terms as $term ) : ?>
    					<li><a href="#" data-filter=".<?php echo $term->slug; ?>"><span><?php echo $term->name; ?></span></a></li>
    				<?php endforeach; ?>
    			</ul><!-- /video-cats -->
    		<?php }
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom order for taxonomy?’ is closed to new replies.