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.
<?php while ( have_posts() ) : the_post(); ?>
, what posts is it on about? Can I give it those details, or is it better just to do:
$posts = get_posts(array(
'numberposts' => 5,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'give',
'post_status' => 'publish'
Wordpress absolute newbie by the way!