Forums

the_excerpt surrounds itself with <p></p>: How do you stop it? (2 posts)

  1. buskerdog
    Member
    Posted 3 years ago #

    I'm using this basic template:

    <?php while (have_posts()) : the_post(); ?>

    <?php if(is_category() || is_archive()): ?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_excerpt(); ?></a>
    <?php endif; ?><?php endwhile; ?>

    But <?php the_excerpt(); ?> is adding paragraph tags. Where do I go to tell it to stop doing that?

  2. buskerdog
    Member
    Posted 3 years ago #

    Nevermind. I put the excerpt in a little div box and styled that to do what I want.

Topic Closed

This topic has been closed to new replies.

About this Topic