Print custom fields in Alphabetical order
-
I am using CCTM to build a Literary Agency website.
The page I’m stuck on is the Authors page which displays Thumbnails of all the books related to the author at the bottom of the authors profile. Pls see link here. The code i have below does just that, however I want it displayed in Alphabetical order. I’ve tried using many solutions, but i’m not quite sure how to incorporate any solutions into my existing code. Any help is greatly appreciated.
This is the code
<?php if (get_custom_field("authimage:get_post")):?> <div class="thumbstrip"> <h4>Titles by this Author</h4> <ul> <?php $my_post = get_custom_field("authimage:get_post"); if(!empty($my_post)){ foreach ($my_post as $a) { print '<li><a href="'. $a['permalink'] .'" title="'. $a['post_title'] .'"><img src="'.$a ['thumbnail_src'].'" /></a></li>'; } } ?> <ul> </div> <?php endif;?>
https://www.ads-software.com/plugins/custom-content-type-manager/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Print custom fields in Alphabetical order’ is closed to new replies.