• Hi Im using the excerpt for post but when I click on the read more link it does not show me all post paragraph and it show me only the paragraph excerpted and this the code ine index.php
    <?php if ( have_posts() ) : ?>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, get_post_format() ); ?>
    <h2> “> <?php the_title(); ?> </h2>
    <?php the_excerpt(); ?>
    <?php endwhile; ?>
    <?php else : ?>
    <?php get_template_part( ‘content’, ‘none’ ); ?>
    <?php endif; ?>
    and this is the code in function.php file
    function new_excerpt_more( $more ) {
    return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
    }
    add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    Can you point us to your actual theme? also your site ONLY if possible.

    Thanks!

    does your theme include a template file single.php?

    if not, try and change this line of code from:

    <?php the_excerpt(); ?>

    to:

    <?php if( is_single() ) { the_content(); } else { the_excerpt(); } ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘the excerpt’ is closed to new replies.