• Resolved Mushie

    (@mushie)


    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)
  • There’s nothing in the code you posted that should show the title twice. So the issue could be you have a custom excerpt function, that might have come with whatever theme you are using. Something like that should be found in your functions.php file.

    Thread Starter Mushie

    (@mushie)

    Had a look through the functions.php file again and it is indeed in the function. I had somehow missed it -_-“

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpt Glitch – Title appears within the excerpt content’ is closed to new replies.