What I'm trying to achieve is to set the list shown in alphabetical order. Any thoughts on how i can successfully achieve this? I have pasted the snippet below for reference.
<ul class="hotel-list">
<?php while (have_posts()) : the_post(); ?>
<?php
$short_description = get_post_meta(get_the_ID(), 'short_search_description', true);
$destination = get_post_meta(get_the_ID(), 'destination', true);
?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(250, 9999)); ?></a>
<a href="<?php the_permalink(); ?>"><?php the_title(); echo $destination; ?></a>
<p><?php echo $short_description; ?></p>
<div class="clear"></div>
</li>
<?php endwhile
; ?>
</ul>
Thanks in advance Kenbo
Aucun commentaire:
Enregistrer un commentaire