Full Posts in Archives

Viewing 3 posts - 1 through 3 (of 3 total)
  • #15605
    michaelwpl
    Participant

    I’ve been pulling my hair out trying to figure this out (thanks for making me bald btw πŸ˜‰ ) but I need to have full posts in the archives like this http://src.wpl.ca/category/chapter-book-challenge/chapter-book-challenge-main Since there is no archives.php file I’m not sure where to edit the code.

    Any help would ge hugely appreciated.

    Michael

    #15646
    Daniel Tara
    Keymaster

    You need to open each content-*.php file and replace this code:

    <div class="entry-summary">
    	<?php the_excerpt(); ?>
    </div><!-- .entry-summary -->

    with this:

    <?php if( is_archive() ) : ?>
    	<div class="entry-content">
    		<?php the_content(); ?>
    	</div><!-- .entry-content -->
    <?php else : ?>
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->
    <?php endif; ?>
    #15699
    michaelwpl
    Participant

    Thanks! Works perfectly!

Viewing 3 posts - 1 through 3 (of 3 total)

Tagged: 

You must be logged in to reply to this topic.