I've set up some custom post types with Pods, but can't seem to get it to display my manual excerpt. It's working fine for my normal posts.
I've tried displaying it with echo get_the_excerpt() and the_excerpt(). I've tried doing it using get_posts() and setup_postdata(). I've also tried a standard WP_Query loop.
No matter what I do, it just gives me the automatically generated excerpt.
Any ideas?
<?php
$posts = get_posts(array(
'post_type' => 'press-release'
));
foreach ($posts as $i => $post) {
setup_postdata($post); ?>
<div class="row press appear" on-visible="{class: 'visible'}">
<div class="columns small-3">
<p class="date"><?php echo get_the_date('M j Y'); ?></p>
</div>
<div class="columns small-9">
<h2><a target="_blank" href="<?php echo get_the_permalink(); ?>"><?php the_title(); ?> ></a></h2>
<div class="excerpt"><?php the_excerpt(); ?></div>
</div>
</div>
<?php
} ?>
$my_excerpt = (get_post_meta( $post_id, 'my_excerpt_field_name', true ));