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?
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.
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?
mustangviper,
I'm curious if this is built into your functions.php file. What theme are you currently using?
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.
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.
mustangviper
Member
Posted 2 years ago #
Oh, and I don't have a functions.php file :)
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.
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.
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'); ?>
ben.blodgett
Member
Posted 2 years ago #
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.
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