[wp-trac] [WordPress Trac] #10724: Cannot change excerpt_length using codex example
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 17 14:38:59 UTC 2010
#10724: Cannot change excerpt_length using codex example
--------------------------------------------+-------------------------------
Reporter: jsherk | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.8.5
Component: General | Version: 2.8.4
Severity: normal | Resolution: invalid
Keywords: excerpt_length, excerpt length |
--------------------------------------------+-------------------------------
Changes (by jorisw):
* status: reopened => closed
* resolution: => invalid
Comment:
Looks like I needed to add a low priority to the filter:
{{{
function new_excerpt_length($length) {
return 100;
}
add_filter('excerpt_length', 'new_excerpt_length', 999);
}}}
That works.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10724#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list