[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop
WordPress Trac
noreply at wordpress.org
Fri Jan 15 21:30:45 UTC 2016
#27246: Add function to get the excerpt outside the loop
---------------------------------------------+-------------------------
Reporter: Atoon | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.5
Component: Posts, Post Types | Version: 3.8.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: template
---------------------------------------------+-------------------------
Comment (by markoheijnen):
With similar ones I compare it with `the_content` and that one also not
have it. I rather would revert it since they are more like theme functions
which are generally used in a loop.
Isn't it an option to put functions like this in WP_Post? and change the
theme functions to call the methods in WP_Post. As a plugin developer I
would love to use WP_Post more and doing something like this would be a
good step.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27246#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list