• Resolved Rose

    (@eos-rose)


    I need the following code to return the contents of the custom field “Author” in alphabetical order, but I’m a total newbie and can’t figure it out…

    <?php if(get_post_meta($post->ID, 'Author', false)): ?>
     <?php $Author = get_post_meta($post->ID, 'Author', false); ?>
       <tr><th class="label"><b>Author:</b></th><td class="custom-info"><?php echo implode($Author,', '); ?></td></tr>
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show muliple results of custom field in alphabetical order’ is closed to new replies.