[wp-trac] [WordPress Trac] #41733: manual Post excerpt being ignored
WordPress Trac
noreply at wordpress.org
Sat Aug 26 23:20:48 UTC 2017
#41733: manual Post excerpt being ignored
--------------------------+------------------------------
Reporter: maltonge | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.8.1
Severity: normal | Resolution:
Keywords: close | Focuses: template
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => close
* focuses: => template
* component: General => Themes
Comment:
Hi @maltonge, welcome to WordPress Trac! Thanks for the report.
> I've been on this for days, I thought it was an issue with the theme
Twenty Seventeen is indeed designed to show full posts on home page, it
only shows excerpts on search pages. If you'd like it to show excerpts on
home page, you'd need to create a child theme and replace this line in
`index.php` template:
{{{
get_template_part( 'template-parts/post/content', get_post_format() );
}}}
with this one:
{{{
get_template_part( 'template-parts/post/excerpt', get_post_format() );
}}}
If you need any further help, please try the support forums:
https://wordpress.org/support/.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41733#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list