I am running a custom query using a select in a page template, and I have got a list of post id's, how can I get all of the post information for these post's? I am trying to use the following: <?php if ( function_exists('the_tags') ) { the_tags('Tags: ', ', ', ''); } ?> But it is not appearing, also the_title(); does not show the right post. Do I need to do setup_postdata? as I could not get it working? My query is : $myquery = $wpdb->get_results($hdqry);