WordPress.org

Ready to get started?Download WordPress

Forums

I am unable to make the post excerpts work in the twenty twelve theme. (2 posts)

  1. vwebber
    Member
    Posted 1 year ago #

    I am unable to make the post excerpts work in the twenty twelve theme. I contacted my host provider who was unable to make it work either. They said it looks like the default wordpress behaviour is not functioning.

    Hostgator said it did not appear to be a server related problem, but one isolated to the wordpress and theme/plugin code.

    I am getting very frustrated by this. Please help!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    excerpts only show in search result pages - directed by this section in content.php of Twenty Twelve:

    <?php if ( is_search() ) : // Only 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>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic