I'm wondering the best way to do this. I created a custom post and the custom post can have multiple categories. I have created a custom template and I'm wondering now the best way to go about getting the posts in. I don't really understand the while loop e.g.
, what posts is it on about? Can I give it those details, or is it better just to do:
<?php while ( have_posts() ) : the_post(); ?>
Wordpress absolute newbie by the way!
$posts = get_posts(array(
'numberposts' => 5,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'give',
'post_status' => 'publish'