[wp-trac] [WordPress Trac] #39519: Twenty Seventeen: Excerpt not showing

WordPress Trac noreply at wordpress.org
Fri Jan 13 17:29:32 UTC 2017


#39519: Twenty Seventeen: Excerpt not showing
-----------------------------+------------------------------
 Reporter:  Sheriziya        |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bundled Theme    |     Version:  4.7
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:
-----------------------------+------------------------------
Changes (by Sheriziya):

 * keywords:   => has-screenshots


Comment:

 Hi [comment:2 SergeyBiryukov]:
 > Hi @Sheriziya, thanks for the ticket!
 >
 > > The bundled theme 2017 doesn't show the excerpts despite setting the
 reading settings to show a summary on the feed.
 >
 > The option in Reading Settings only applies to RSS feeds and does not
 affect the front-end appearance (which is completely controlled by the
 theme), see #22049.
 >
 > FWIW, previous bundled themes didn't have an option to switch between
 full text and excerpt either.
 I just noticed something very weird. I've two websites, both default
 wordpress 4.7 installations with the default theme (2017) installed
 without any changes to the core files of the themes. However, in the
 search results, [one site: http://ilsemul.com/?s=happy] gives only the
 summary of the article on the page, suggesting the excerpt does work, but
 for some reason only on the search results (mind, still not on the blog
 page, archive page nor the category page!).

 Search results with only summary (mind, the site is set to one-column, but
 apparently the search results has a problem with that, just like the blog
 page I reported in another ticket):
 [[Image(http://ilsemul.com/contentman/wp-content/uploads/2017/01/ilsemul-
 searchresults.png)]]
 Text of the post:
   I wish everyone a very happy 2017 with lots of love, and happiness. May
 all your wishes come true. May you all have a healthy and creative 2017
 with wonderful stories to read and tell! Make 2017 YOUR year!

 I just noticed what I thought was jumbled, was actually the text of the
 home page showing up as well in the search results. Hadn't thought about
 that.
 Still..... Excerpt shows on search page, but not on any other page. So...
 it can be done.

 ETA: I just looked at the source files again and noticed this in the
 content_excerpt template:
  Template part for displaying posts with excerpts
  Used in Search Results and for Recent Posts in Front Page panels.

 Tested especially the last part and indeed, when you display your recent
 posts on your front page, the summary shows up. I've made the blog page a
 section of the front page while the site is set to using a static front
 page and a separate blog page. The separate blog page still shows the full
 posts instead of the summary. You can see it at [my author site:
 http://ilsemul.com/]

 So the blog page can show the summaries, but only if it's (a section of)
 the front page??? Confusing and not logical if you ask me.

 @evadillner and @lukecavanagh do you see a similar result?

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


More information about the wp-trac mailing list