WordPress.org

Ready to get started?Download WordPress

Forums

Full post instead of excerpts (5 posts)

  1. Vichingo
    Member
    Posted 3 years ago #

    When I first Installed the Coraline theme last December all posts show up in full. Then I did something I no longer remember and they all appear in excerpt, forcing visitors to click on tittle to see the full content.

    I want to go back to always full content but what I find in forums said I should,
    1. Go to the index.php
    2. Find <?php the_excerpt(); ?>
    3. Change it to: <?php the_content(); ?>
    However in my Coraline's index.php page there's no mention to 'excerpt', and as far as I remember, when I changed from full to excerpt I didn't do anything so complicated because I'm not a tech guy.

    Can anybody help me?
    Thanks

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    check for loop.php, and see if you can make the changes there;

  3. Vichingo
    Member
    Posted 3 years ago #

    In loop.php there are following entries:
    3 x <?php the_excerpt(); ?>
    1 x Display excerpts for archives and search.
    1 x Display excerpts for search.

    Should I replace the word 'excerpt' or 'excerpts' and put 'content' or 'contents' instead? In all 3?

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    i would assume that you might need to bring the last occurrance back to the original state (the one with 'display excerpts for search'):

    <?php if ( is_search() ) : // Display excerpts for search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'coraline' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>

    but, this depends on what you have changed a while ago - 'Then I did something I no longer remember and they all appear in excerpt'

  5. Vichingo
    Member
    Posted 3 years ago #

    This how my lopp.php looks now:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic