[wp-trac] [WordPress Trac] #29623: the_excerpt parameters
WordPress Trac
noreply at wordpress.org
Thu Sep 11 15:07:28 UTC 2014
#29623: the_excerpt parameters
-------------------------------+------------------------------
Reporter: valeriosza | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------------+------------------------------
Comment (by obenland):
Excerpts come with a few filters, that lets you do pretty much anything,
if the default output doesn't work for your specific needs.
[https://core.trac.wordpress.org/browser/tags/4.0/src/wp-
content/themes/twentyeleven/functions.php#L349 Twenty Eleven actually uses
one of them to modify it].
There is `excerpt_length` and `excerpt_more` in
`wp_trim_excerpt()`([https://core.trac.wordpress.org/browser/tags/4.0/src
/wp-includes/formatting.php#L2513 #]), and of course `get_the_excerpt` and
`the_excerpt` in the excerpt template tags
([https://core.trac.wordpress.org/browser/tags/4.0/src/wp-includes/post-
template.php#L312 #]).
Since it's so highly customizable through filters, it shouldn't really
need additional arguments to achieve that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29623#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list