[wp-trac] [WordPress Trac] #25349: Can't retrieve calculated excerpt bound by <!--more--> on single page view

WordPress Trac noreply at wordpress.org
Wed Sep 18 05:22:53 UTC 2013


#25349: Can't retrieve calculated excerpt bound by <!--more--> on single page view
-------------------------+-----------------------------
 Reporter:  chriscoyier  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.6.1
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Submitting as Mr. Nacin suggested would be a good idea.

 The issue in words I understand is: when you use the_excerpt() on (for
 instance) a custom page template, it ignores the <!-- more --> comment
 that you might have carefully placed in your content. I would expect it to
 honor this, since that is kind of the point of that special comment.
 the_content() will honor it when used on non-single-pages, but in the case
 of a custom page template, the_content() will of course spit out the
 entirely of the content.

 Andrew gave me this code which does the trick:
 https://gist.github.com/nacin/ab97d4b0e57b169d26d5 but is apparently hacky
 and not for public consumption.

 This is my lame visual of where I was running into the issue:
 http://glui.me/?i=5bcy8yr99pl7xel/2013-09-17_at_4.28_PM_2x.png/

 Also apparently I'm not the only one who's had this come up recently:
 https://twitter.com/ShaneHudson/status/380105193419186176

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25349>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list