http://www.advancedcustomfields.com/. Some told me this was the best answer.
You're trying to retrieve data in your theme, not add more fields in the dashboard.
Ok, this is the general idea. I have not tested this code, so you may have to make adjustments.
Be sure to read the wordpress codex pages on each function if you are unfamiliar with them.PHP Code:
$storedquery = $wp_query;
$storedpost = $post;
$query = new WP_Query(array('posts_per_page'=>5, 'paged'=>1));
//do something else if there are no posts to display?
$wp_query = $storedquery;
$post = $storedpost;
//continue using regular wordpress loop
For the post thumbnails function, you will have to enable support for it in your theme's functions.php file. All the relevant information should be in the wordpress codex pages.
Again, if you haven't seen the wordpress codex, it is a MUST to read for ANY theme development, as they offer key details for every wordpress function.
Thanks will take a look, and try it out.