What you want to do, can be achieved by means of the WP_Query
class.
$query = new WP_Query(array(
'post_type' => 'quote2',
'posts_per_page' => 10, // or something else
));
Now you can work with $query
like:
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post;
?>
<h1><?php the_title(); </h1>
<?php the_content();
<?php
}
else {
// No posts...
}
If you just want to get access to the posts, you can do so via $query->posts
.