wordpress - Custom ordering of terms instead of alphabetical ordering -
i have created custom post type, named products. inside this, there 'internal products' , 'external products'.

this works fine, , have looping through custom post type , displaying these results, using code below:
<div class="row"> <?php foreach (get_terms('internalproducts') $cat) : ?> <a href="<?php echo get_term_link($cat->slug, 'internalproducts'); ?>"> <?php echo "<div class='tester col-md-6 col-sm-6 col-xs-12' style='margin-bottom:30px;'>"; ?> <div class="row mobilemargin" style="margin-bottom:0px;"> <div class="categorytiletext"> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 nopr"><img class="hovereffect img-responsive-100 newimgheight" src="<?php echo z_taxonomy_image_url($cat->term_id); ?>"/></div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 mobilewhite"> <div class="testdiv"> <h5 class="captext"><?php echo $cat->name; ?></h5> <p><?php if(strlen($cat->description)>$num_words = 10){ echo substr($cat->description, 0, 100) . '…'; } else { echo $cat->description; } ?></p> </div> </div> </div> </div> <?php echo "</div>"; ?> </a> <?php endforeach; ?> now, issue is, displaying in alphabetical order, , need able choose order, in cms.
if go products > internal products, see list of internal product categories, , in alphabetical order, there way let user change this?
i did order button, doesn't exist.
is there way add maybe?
many useful help. :)
the intuitive custom order plugin works treat, go settings , can choose options you'd
Comments
Post a Comment