Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sivaji.siva09

    (@sivajisiva09)

    Hi,

    My website is https://www.investmentstandard.in, I am using twentytwelve-child theme, for which i enabled <?php the_excerpt(); ?> (in the content.php file)instead of the default <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘twentytwelve’ ) ); ?> Now i am facing a problem that is single posts showing excerpts you can see in the link https://www.investmentstandard.in/economic-trend-investment-strategy/ this link contains single post that is getting displayed as excerpt, i don’t want this to happen. Please someone help me how can i solve this problem. Are there anyone to help me out.

    Thread Starter sivaji.siva09

    (@sivajisiva09)

    “In detail again” I used the same code <?php if ( is_search() || is_archive() || is_author() || is_tag() || is_home() ) : // Only display Excerpts ?> But not getting 55 words excerpt, it is only showing the title in the home, in pages, in the author and another thing is individual posts page showing only the title if use the above code and delete the <?php the_excerpt(); ?> if use both of these codes in their respective places i am getting excerpt in individual post pages and only the title in archive, author, and home. How can i achieve the exact functionality of the mentioned code. That is home, search, archive, author, and tag showing excerpts and individual post pages showing full post. How can i achieve this. Am i doing anything wrong, please help me. My website is https://www.investmentstandard.inAnd individual post page https://www.investmentstandard.in/economic-trend-investment-strategy/ Please someone help me.

    Thread Starter sivaji.siva09

    (@sivajisiva09)

    <?php if ( is_search() || is_home() || is_archive() ) : // Only display Excerpts for Search, home, and archive ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
    		<div class="entry-content">
    		<?php the_content(); ?>

    This worked for me. After few edits.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enabling the_excerpt’ is closed to new replies.