Please help me with the_excerpt (2 posts)

  1. alexbudfox
    Posted 3 years ago #

    Hi, I'm using the Blaskan theme. And I would like my posts to show as excerpts throughout the entire blog excerpt when on the actual post. So basically an excerpt on the homepage, tags, searches, archives, everything.

    I'm having a little trouble doing it. Could anyone please help?


  2. martinjharvey
    Posted 3 years ago #

    Edit the template files e.g page.php, single.php etc. for the pages where you want to show the excerpt. Look for the_content(); template tag and replace it with this:

    <?php if( is_single() ) : the_content(); else : the_excerpt(); endif; ?>

    The conditional tag will check if is_single() is true and show the full content or if false will only output the excerpt.

Topic Closed

This topic has been closed to new replies.

About this Topic