Excerpt Glitch – Title appears within the excerpt content
-
Hi,
I called this function <?php the_excerpt(); ?> to output the excerpt of my post in my custom template file.
For some reason however, it’s calling the title of the post as well! I already called the title that’s being wrapped in a separate div but because of the glitch, I’m seeing two titles …
<div class="snippets"> <p><sup><?php the_date('d.m.y'); ?> BY <?php the_author_posts_link(); ?></sup></p> <h3><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?></a> </h3> <div class="post-content"> <?php the_excerpt(); ?> </div><!-- end .post-content --> </div><!-- end .snippets -->
Screenshot here: https://goo.gl/E7JsA
Much appreciated if anyone could help fixing this issue!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Excerpt Glitch – Title appears within the excerpt content’ is closed to new replies.