WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] the_excerpt

[Resolved] the_excerpt

  • Been following this example

    http://guff.szub.net/2005/02/26/the-excerpt-reloaded/

    I want to use this function

    <?php the_excerpt_reloaded(50, ”, ‘none’, TRUE, ‘Keep reading >>’, FALSE, 2); ?>

    I keep getting this error – Fatal error: Call to undefined function the_excerpt_reloaded() in….

    This is what the loop looks like

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>

    <?php the_excerpt_reloaded(50, ”, ‘none’, TRUE, ‘Keep reading >>’, FALSE, 2); ?>
    </div>
    </div>

    <?php endwhile; ?>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>

    </div>

    Should I be using this on the index page? or should it be somewhere else?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] the_excerpt’ is closed to new replies.