I’m displaying my excerpt on my website using <?php the_excerpt(); ?>
I’m getting a space above and below the excerpt — it’s like WP is inserting a couple line breaks above and below the excerpt. How can I remove these breaks? They’re not in the html.
BTW, the excerpt is imported from MT. I don’t know if the import process somehow caused these newlines to appear. My guess is no, because when I go to the edit screen in wp-admin, I don’t see any extra spaces in the excerpt field.
- The topic ‘newlines before and after excerpt’ is closed to new replies.