[wp-trac] [WordPress Trac] #39921: the_excerpt needs additional parameters to control teaser length and visibility of 'read more' link

WordPress Trac noreply at wordpress.org
Tue Feb 21 19:54:46 UTC 2017


#39921: the_excerpt needs additional parameters to control teaser length and
visibility of 'read more' link
-------------------------------+------------------------------
 Reporter:  subrataemfluence   |       Owner:
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.7.2
 Severity:  normal             |  Resolution:
 Keywords:  close              |     Focuses:  template
-------------------------------+------------------------------

Comment (by grapplerulrich):

 There is function that reduces the number of words
 https://developer.wordpress.org/reference/functions/wp_trim_words/

 WordPress runs a few other functions before outputting the excerpt.
 https://github.com/WordPress/WordPress/blob/master/wp-includes/default-
 filters.php#L143-L148

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39921#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list