How to get custom post type title, excerpt, thumbnail and permalink by post ID?

Hi there,
I have to generate several "loops" to get the title, excerpt, thumbnail and permalink of a custom post type 'charity' by post ID, because I need to target each ID with a special class (absolute-positioned map pointers).
Can you help me adjust my code so I can get it to work? What I have so far doesn't work:
<span id="chty_17">
						<?php // Charity ThirtySix  
                        $args = array('post_type'=> 'charity','post__in' => array(36));
                        $custom_query = get_posts($args);
                        foreach ($custom_query as $post) :
                        setup_postdata($post); ?>
                        <dt><?php the_title; ?></dt>
                        <dd>
                        <?php echo get_the_post_thumbnail(); ?>
                        <h2><?php the_title; ?></h2>
                        <p><?php the_excerpt; ?></p>
                        <p><a class="more" href="<?php echo get_post_permalink();?>">Find out more &raquo;</a></p></dd>
                        <?php endforeach;
                        wp_reset_postdata();?>
                	</span>

Open in new window

This code only displays the thumbnail and permalink correctly. I tried other options like the below, but the excerpt isn't included:
<?php $post_17 = get_post(17); // ABORIGINAL CHRISTIAN VOICE NETWORK ?>
                        <dt><?php echo $post_17->post_title; ?></dt>
                        <dd>
                        <?php echo get_the_post_thumbnail('17'); ?>
                        <h2><?php echo $post_17->post_title; ?></h2>
                        <p><?php echo $post_17->post_content; ?></p>
                        <p><a class="more" href="<?php echo get_post_permalink('17');?>">Find out more &raquo;</a></p></dd>

Open in new window

Please help! Thanks!!
cstelaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cstelaAuthor Commented:
I have achived what I wanted with WP Query:

$query1 = new WP_Query(array('post_type' => 'charity','p' => '17'));
                              if ($query1->have_posts()) : while($query1->have_posts()) : $query1->the_post();?>
                              <dt><?php the_title(); ?></dt>
                        <dd>
                        <?php echo get_the_post_thumbnail(); ?>
                        <h2><?php the_title(); ?></h2>
                        <p><?php the_excerpt(); ?></p>
                        <p><a class="more" href="<?php the_permalink();?>">Find out more &raquo;</a></p></dd>
                              <?php endwhile; else : endif; wp_reset_postdata(); ?>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.