Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using WordPress Custom Content Type Manager 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. The code i have below does just that, however I want it displayed in alphabetical order.

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;?>

I've searched everywhere, but struggle adapting the solutions into my existing code.

Heres the link to the CCTM plugin: Custom Content Type Manager Plugin

share|improve this question
    
A link to that plugin would surely help. –  kaiser Oct 25 '13 at 7:38
    
sorry heres the link wordpress.org/plugins/custom-content-type-manager –  Ruth Oct 25 '13 at 10:11
    
Could you please edit your question with your link? –  kaiser Oct 25 '13 at 10:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.