Forums

Why "the_excerpt();" not work on my theme? (5 posts)

  1. Mrtee
    Member
    Posted 3 years ago #

    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?

  2. design_dolphin
    Member
    Posted 3 years ago #

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

    Are you getting any other errors?

  3. Mrtee
    Member
    Posted 3 years ago #

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

  4. rtivel
    Member
    Posted 3 years ago #

    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.

  5. rtivel
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.