Excerpts Not Working When 'Read More' Option is Used
This is an odd problem that has just started showing up at my site as far as I can tell.
Here is my issue:
I haven't seen this before. The only change I can recall making in recent weeks is that I upgraded Atahualpa to 3.5.3 and Wordpress to 3.0.3. Thoughts? Suggestions? |
This is a case when there are too many ways to do the same thing. If you want an excerpt you can
- hand craft it - manually add the <!--more-->> or - let it be automatically created Excerpts are the messiest thing to figure out - what do you do if you have an automatic excerpt set to 55 and there is a <!--more--> at word 45? what if there is a manual excerpt and a <!--more--> at word 45? since all html is stripped from an excerpt by default how do you handle thumbnails? There were some bugs in the prior code handling the edge cases. Currently the way it works is this 1) if there is a manual excerpt (hand crafted in the post) use that 2) if there is a <!--more--> use that 3) other wise auto generate the excerpt |
So... if I understand you correctly... an excerpt will not be auto-generated if there is a manual "!--more--" tag inserted into the post.
This is new, in my understanding. It's also frustrating, as I have thousands of posts (but not all by any stretch) that have the "!--more--" tag and that had previously had excerpts automatically generated. (For example, a post might have six paragraphs, and I'd want a "read more" link after three paragraphs. But when the post is shown on pages with other excerpted posts, I'd want a shorter excerpt for it also, not the three long paragraphs.) Now those thousands of posts are handled differently than they were before. Thank you for helping me with my understanding. I would be very glad for you to straighten me out if I misunderstand something. |
1 Attachment(s)
try this, I made a change to functions.php
rename the current functions.php to functions.353 Unzip the version attached upload this version and test it and let me know if it works for you. Attachment 994 |
Thank you. I will try it.
|
All times are GMT -6. The time now is 09:49 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.