Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Excerpts Not Working When 'Read More' Option is Used


  #1  
Old Jan 5, 2011, 03:11 AM
Sundrop
 
14 posts · Dec 2009
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 have my seven most recent posts shown without excerpts.
  • Occasionally those run long enough that I break up a post by inserting "Read more" in the post.
  • Posts beyond the seven most recent ones are expected to show excerpts only.
  • The issue is that posts with the "read more" tag are not being excerpted like they should. I'm getting all of the post shown up to the point of the "Read more" tag. It's as if the expectation that an excerpt should be showed is ignored if there is a "Read more" tag - except it *is* showing a thumbnail. The thumbnail is not so helpful since it's duplicating the image before the "read more" tag.

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?
  #2  
Old Jan 5, 2011, 05:27 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 5, 2011, 10:19 AM
Sundrop
 
14 posts · Dec 2009
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.
  #4  
Old Jan 5, 2011, 02:23 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
functions.php.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 6, 2011, 05:02 PM
Sundrop
 
14 posts · Dec 2009
Thank you. I will try it.

Bookmarks

Tags
excerpts, read more, thumbnail



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read More link under Excerpts does not appear at all 3ukman Excerpts, Read more, Pagination 25 Jul 12, 2010 02:12 PM
I want to get rid of the Read more? option kalexn Center area post/pages 1 Jul 7, 2010 06:40 AM
How to change Excerpts option to full post? gwpad Sidebars & Widgets 1 Mar 3, 2010 08:27 AM
[SOLVED] Read More Option taking user to the middle of the post djrishi Excerpts, Read more, Pagination 4 Feb 1, 2010 10:54 AM
Atahualpa 3.4 : EXCERPTS new option to read the full post after [...] does not work benoit Excerpts, Read more, Pagination 2 Jul 9, 2009 07:45 PM


All times are GMT -6. The time now is 01:11 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.