• When I used wordpress 2.6, “<?php the_excerpt(); ?>” the post display 55 words no wrong anything.
    Now upgrade to 2.7, I can’t use <?php the_excerpt(); ?>. It still working on 2.7?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User

    (@anonymized-473288)

    Yes <?php the_excerpt(); ?> is still working.

    Are you getting any other errors?

    Thread Starter mrtee

    (@mrtee)

    Now it’s worked same original no wrong anything. I may forgot some step.
    Sry for waste time to me.

    Hi, Mrtee,

    Does your themes index.php file contain code like this:

    <div class="entry">
    					<?php /*?><?php the_content('Read the rest of this entry &raquo;'); ?><?php */?>
    					<?php the_excerpt(); ?>
    				</div>

    The first line has been commented out and the second line, <?php the_excerpt(); ?> added.

    The index.php file must be modified this way for excerpts to work.

    Sorry for the post. I see that excerpts are working for you now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why “the_excerpt();” not work on my theme?’ is closed to new replies.