I am trying to get this wordpress page template to display an excerpt from a specific post. When the post was created I was sure to insert the link in the place that I want. I am able to grab the title, the thumbnail, the permalink, etc... but for whatever reason I can not get the excerpt. I have tried:
the_excerpt();
get_the_excerpt();
the_content('',FALSE);
get_the_content('', FALSE, '');
get_the_content('', TRUE);
Among other things. When I try get_the_content('', TRUE) it gives me the content from everything AFTER the link but I want what is BEFORE the link.
Any ideas?
<?php
$query = 'cat=23&posts_per_page=1';
$queryObject = new WP_Query($query);
?>
<?php if($queryObject->have_posts()) : ?>
<div>
<?php while($queryObject->have_posts()) : $queryObject->the_post() ?>
<div>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<br>
<?php the_post_thumbnail() ?>
<?php #the_excerpt(); ?>
<div>
<a href="<?php the_permalink(); ?>">Read More</a>
</div>
</div>
<?php endwhile ?>
</div>
<?php endif; wp_reset_query();
?>