WordPress.org

Ready to get started?Download WordPress

Forums

Please help me with the_excerpt (2 posts)

  1. alexbudfox
    Member
    Posted 1 year 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?

    Thanks

  2. martinjharvey
    Member
    Posted 1 year 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