I want to limit the length of most recent post to about 250 words and then have a 'more' link to a full post should the reader wish to keep going.
I thought "limit posts" plug in did that, but I can't get it to work. Instructions say to change the 'content' part of index.php, but I don't see any. Simply putting the word limit and text into the plug in, putting it into wp-content/plug-ins and activating it doesn't seem to work. Anyone help?
So open your index.php and look for something like this
<?php the_content('Read more »'); ?>
and replace with
<?php the_content_limit(1000, "more"); ?>
I would assume changing the 1000 to 250
The index.php in the main blog is empty (essentially) so I went to the index.php of the theme I'm using (Copyblogger).
I changed the_content to the_content_limit and also changed ("read more &rrr");' to (250, "more »"); and tried that.
It didn't work. The message was that there was a fatal error and an attempt to call and 'undefined function'....
Am I putting the change into the right place? Is there another way to do this without using this particular plug-in?
Thanks for your help,
1. Nobody thought you would try to edit the root index. Never do that. The only files you are supposed to edit are the theme's template files.
2. If it cries about an undefined function - then the plugin (or the file where it should be "defined") is missing, not activated etc.
Got it. Thanks a bunch for your help.