WordPress.org

Ready to get started?Download WordPress

Forums

Help with the_excerpt Reloaded (6 posts)

  1. aerojad
    Member
    Posted 9 years ago #

    Hello. I've been wanting to implement the_excerpt_reloaded on my blog since I came across the wiki page dedicated to it. So I've tried putting <?php the_excerpt_reloaded(); ?> in the loop on index.php and all that seems to happen is the following

    excerpt
    (link)
    entire post, including excerpt

    So every story posts 1 1/2 times, I guess you could say. If I take <?php the_content(); ?> out, I'm left with the excerpt and a link which just takes me to the story again, only with the excerpt there and not the whole story. So could anyone point me in the direction of how to set up the_excerpt_reloaded so it actually works? Thank you.

  2. Kafkaesqui

    Posted 9 years ago #

    Apparently your theme doesn't have a single.php template? If not, use this for your excerpt/content "tag":

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

  3. aerojad
    Member
    Posted 9 years ago #

    No, I don't have a single.php template. If I had one of those with the_content() instead of the_excerpt_reloaded(), would that solve my problem as well? I like different templates so this would answer my next question of how to customize an individual post template, haha.

  4. Kafkaesqui

    Posted 9 years ago #

    "If I had one of those with the_content() instead of the_excerpt_reloaded(), would that solve my problem as well?"

    Yep. Just to make it clear to everyone (since you seem to have answered your own question).

  5. aerojad
    Member
    Posted 9 years ago #

    very good, thanks

  6. ioreyes
    Member
    Posted 8 years ago #

    I can't seem to get this to work. Well, I'm a newbie so anyway...

    I uploaded the file to my plugins directory and activated it. But I'm not sure where to put the

    <?php the_excerpt_reloaded(); ?>

    and if I'm supposed to comment something out.

    I'm using wordpress 2.0.1 and the connetions theme. Would appreciate any help. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.