Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27926 closed defect (bug) (worksforme)

excerpts seem not to work since WP 3.9

Reported by: summoner's profile summoner Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Themes Keywords:
Focuses: Cc:

Description

After updating to WP 3.9 i noticed that the full post will be displayed instead of the autoexcerpt or even if i predefine an excerpt in the post editor. This occurs even with the default themes twenty-fourteen and twenty-twelve (did not try other default themes) with no activated plug-ins as well. Cleared browser cache, etc. Tried on chrome and IE11. Same on another installation upgraded to WP 3.9 as well. Can you reproduce it, or is the problem only on my side?

Change History (10)

#1 @summoner
10 years ago

Now i tried non-default themes and the excerpt functions as excepted. But all the default WP themes show the full post. Strange.

#2 @Ipstenu
10 years ago

  • Component changed from Posts, Post Types to Themes
  • Keywords needs-patch added

Confirmed, I can reproduce this on Twenty Fourteen. o.O Oookay it's working fine on my personal sites and I tested on non default themes and it works just fine. Looks like something 'weird' with the defaults, and this didn't used to be the case.

#3 @ocean90
10 years ago

  • Keywords reporter-feedback added; needs-patch removed

All default themes are showing the excerpt only for posts with the default post format in search results. Tested also some other themes, works so far.

Which theme are you using?

#4 @SergeyBiryukov
10 years ago

This occurs even with the default themes twenty-fourteen and twenty-twelve (did not try other default themes) with no activated plug-ins as well.

As noted by ocean90, both Twenty Fourteen and Twenty Twelve only show excerpts in search results:
tags/3.9/src/wp-content/themes/twentytwelve/content.php#L38
tags/3.9/src/wp-content/themes/twentyfourteen/content.php#L47

I don't see any changes from the 3.8 behaviour here.

#5 @Ipstenu
10 years ago

I was able to reproduce it on a fresh build with all default themes (fourteen through ten). N plugins, 100% brand new 3.9 site on localhost.

#6 @summoner
10 years ago

I noticed it first on a site that is right under development. Before upgrading to WP 3.9 the excerpt was working fine that is for sure. This site is a self-hosted one, runs with a child-theme of twenty-fourteen with several plug-ins.

When i noticed that the full posts are shown i just thought it is only a usual conflict and turned off all the plug-ins. Problem persisted. Then i changed to a non-default theme. Surprisingly enough the excerpt was functioning then.

Since then i tried it on 3 more independent self-hosted installations (one of them is WP 4.0 alpha). Same behaviour. Have tried it with about a dozen non-default themes and with them the excerpt is fine. On the other hand if i activate any default theme then the excerpt fails to show up.

Recently i noticed that on search result pages the excerpt will be shown even with the default themes, but not on archieve or home pages...

Some minutes before i made a clean and new installation of WP 3.9 with a clean database. So nothing was ever modified and the problem is the same.

Last edited 10 years ago by summoner (previous) (diff)

#7 follow-up: @summoner
10 years ago

@ocean90 and @SergeyBiryukov
So you mean the default themes should show the excerpt only on search results pages and that is indented to be that way.
I just can say my intention was to show the excerpt on the homepage and before WP 3.9 it was functioning that way and was pretty much happy with the layout of my site. I am sure that excerpts were functioning with my twenty-fourteen child theme and even a google cached version of my site reassures me in that (yeah i just forgot to prevent indexing a dev site :-) ).

#8 in reply to: ↑ 7 ; follow-up: @SergeyBiryukov
10 years ago

Replying to summoner:

So you mean the default themes should show the excerpt only on search results pages and that is indented to be that way.

Well, that's how Twenty Fourteen worked since it was first added in [24832]. I've just tested it on a clean 3.8 install.

If you don't want full posts to be displayed on the home page, you can use the <!--more--> tag:
http://codex.wordpress.org/Customizing_the_Read_More

#9 in reply to: ↑ 8 @summoner
10 years ago

Replying to SergeyBiryukov:

Replying to summoner:

So you mean the default themes should show the excerpt only on search results pages and that is indented to be that way.

Well, that's how Twenty Fourteen worked since it was first added in [24832]. I've just tested it on a clean 3.8 install.

If you don't want full posts to be displayed on the home page, you can use the <!--more--> tag:
http://codex.wordpress.org/Customizing_the_Read_More

Okay, thanks. I will do that or modify the code in my child theme.
I think it will remain a myst why it worked for me before.

#10 @ocean90
10 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.