WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>
<?php $my_post = get_custom_field("authimage:get_post");
foreach ($my_post as $a) {
print '<li><a href="'. $a['permalink'] .'" title="'. $a['post_title'] .'"><img src="'.$a ['thumbnail_src'].'" /></a></li>';}}?>
<?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


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

Browse other questions tagged or ask your own question.