fabioassis
Member
Posted 7 years ago #
What may I do to hide the excerpt if it's empty?
My (cleaned) code looks like this:
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php the_content(); ?>
Now, WP repeats the content.
perfectionisboring
Member
Posted 7 years ago #
I ran into the same problem today, so I hope someone can help both of us with this problem. I am working on a music review site where I put the cd image in the excerpt, but for posts without an image (like site news) it repeats the content twice since the excerpt was left blank.
sunshine
Member
Posted 7 years ago #
sunshine
Member
Posted 7 years ago #
Uh, I wasn't suggesting that it wasn't.
fabioassis
Member
Posted 7 years ago #