hi,
I wonder if there is a way to display excerpts in single.php only on posts that I published after a certain date?
The problem is that I have a lot of old posts without manually written excerpts, and I don't want WP to automatically generate the 55 words excerpt for me since it leads to duplicate content in the posts on single page views.
My php skills is not the best, but here's what I've tried so far:
<div class="excerpt">
<?php $postdate = the_date('Y-m-d','','',false) ?>
<?php if ($postdate < date("2008-12-29")) {
echo ' <?php the_excerpt(); ?>';}?>
</div>
that is… if posts are published after 2008-12-29 – display excerpt. if older – don't.
Any suggestions? Thanks!