Forums

Truncated long blog entires (13 posts)

  1. mustangviper
    Member
    Posted 2 years ago #

    I noticed that one of my VERY long blog entries was truncated. I had listed my entire music collection and it had 2941 songs. It used to display fine but now, I just see the intro and then the comments.

    I experimented by adding the songs a chunk at a time and they all displayed until I added 2000-2500. So it looks like the limit is somewhere around 2000 lines.

    The entry is at http://www.grose.us/blog3/2007/03/08/play-me-a-song-im-the-music-man/.

    Any ideas how I can fix this?

  2. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    You need to edit the index.php and single.php/page.php file of your theme and find this:

    the_excerpt()

    Replace with:

    the_content()

    Thanks,

    Shane G.

  3. mustangviper
    Member
    Posted 2 years ago #

    Shane,

    Thanks for your reply. I looked at both of those files and I don't have the_excerpt()in any of the code.

    I do have this:

    <div class="entry">
    <?php the_content('Click here to continue reading »'); ?>
    </div>

    I think it might have something to do with have more than 2000 lines but it hasn't been a problem until now so I'm thinking it has to do with one of the version updates.

    Any other ideas?

  4. doc4
    Member
    Posted 2 years ago #

    mustangviper,

    I'm curious if this is built into your functions.php file. What theme are you currently using?

  5. mustangviper
    Member
    Posted 2 years ago #

    I am using something called Blue-Bye-you by Brian Ellis but I've done a lot of bare knuckle hand coding on it. It's old and doesn't have a lot of the newer built in bells and whistles but I don't want to start over and like the layout the way it is.

  6. ben.blodgett
    Member
    Posted 2 years ago #

    Check your functions.php file in the theme and make sure its not defining content or excerpt length.

  7. mustangviper
    Member
    Posted 2 years ago #

    Oh, and I don't have a functions.php file :)

  8. mustangviper
    Member
    Posted 2 years ago #

    Oops, I guess I would have to. It doesn't show up in the "Templates" or "Styles" column in the Edit Theme menu.

  9. mustangviper
    Member
    Posted 2 years ago #

    I looked over the code but it is a big hairy bastard and don't have the skills to see if/where it would limit it.

  10. ben.blodgett
    Member
    Posted 2 years ago #

    You would want to use something like this

    <? function new_excerpt_length($length) {
    	return 25;
    }
    add_filter('excerpt_length', 'new_excerpt_length'); ?>
  11. ben.blodgett
    Member
    Posted 2 years ago #

    Excerpt Length Documentation

    More resources there

  12. mustangviper
    Member
    Posted 2 years ago #

    Ben, I saw that but I do't think it's an excerpt problem. If you look at the post, I am not getting the tell-tale "..." which would indicate that it is truncating it. When I edit the entry, all of the lines are there, they just don't show up in the regular post.

  13. oodelally3
    Member
    Posted 1 year ago #

    Hmmm...and on the other end of this, I'd like my posts to actually *be* truncated, and hvae people click to read more. How do I do that?

    My blogs can be long, and it makes the page unbearable long...no one wants to scroll! So if I just had the first couple of paragraphs under the title, that would be cool.

    I don't really understand the PHP stuff and the editor, so layman's terms are best!!!

    cheers,
    christa

Topic Closed

This topic has been closed to new replies.

About this Topic