WordPress.org

Support

Support » Themes and Templates » Excerpt vs Content vs Loops

Excerpt vs Content vs Loops

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can try this, it might work. Open loop.php and change line 23 from this:

    <div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div>

    to this..

    <div class="post-content"><?php the_content(); ?></div>

    You may also want to take the time to comment out the smart excerpts function in the functions.php file as well. Probably not necessary, but you can if you like.

    Thanks for the quick reply.

    I tried to comment out the smart excerpts, but ended up messing something up. Now the whole shebang is down…and I have no idea how to fix it. Help…

    The edit I suggested worked well on my test copy. If something went wrong, I recommend you just re-upload the original theme files to restore the site and start over.

    Commenting out the smart excerpts in functions.php may not actually be required, but if you do, this is what it should like like when you are done.

    /*function smart_excerpt($string, $limit) {
        $words = explode(" ",$string);
        if ( count($words) >= $limit) $dots = '...';
        echo implode(" ",array_splice($words,0,$limit)).$dots;
    }*/

    Yeah, I actually didn’t comment them out, but put in % without thinking (I’m used to using MATLAB, which uses % to comment).
    How do I re-load the original theme files? I can’t get anything to work on the website at all so I can’t go to dashboard, I can’t go to the theme, etc.

    Probably the only way now, is with file access. Either an ftp client or through the file manager in the hosts control panel.

    Hi,

    I have the opposite problem with the Sight theme.

    When I fill the custom excerpt box on a post, the excerpt is displayed on my website but it doesn’t display a ‘Read more’ or anything similar.

    What to do?

    esmi

    @esmi

    Forum Moderator

    @henrikjan2: As per the Forum Welcome, please post your own topics. This topic is 8 months old!

    However, as you are using a non-WPORG theme, you need to seek support from the theme’s developers – paid or otherwise. We only support themes downloaded from wordpress.org here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Excerpt vs Content vs Loops’ is closed to new replies.