Wordpress:Show posts ordered by Title


<table>
<?php
$postslist = get_posts('cat=category-ID&numberposts=-1&order=ASC&orderby=title' );
foreach ($postslist as $post) :
    setup_postdata($post);


 $post_custom_field = get_post_meta($post->ID, "post_image", true); 
?>


<tr>
          <td valign="top" width="26%"><img src="<?php bloginfo('template_directory'); ?>/images/
<?php echo $post_custom_field;?> " width="120" height="90"></td>
          <td class="introcopy" valign="top" width="72%"><strong><?php the_title();?></strong><br>
           <?php the_content();?></td>
          <td width="2%" height="98">&nbsp;</td>
        </tr>
<?php endforeach; ?>
</table>

1 comment: