themes icon indicating copy to clipboard operation
themes copied to clipboard

Customizer not always displaying first image in the post as the featured image, multiple themes

Open pauljacobson opened this issue 3 years ago • 6 comments

Quick summary

Our user reported that their site is not setting the first image in a post as the featured image, despite enabling this feature in the Customizer, in Content Options. The user reported that this has been working for several years, and this behavior has now changed.

This issue seems to be related to this issue for the Apostrophe 2 theme: Apostrophe 2: Theme not selecting first image as featured image when this feature is enabled in Customizer · Issue Automattic/wp-calypso#5827 · Automattic/themes.

Steps to reproduce

  1. The user reported that the theme is selecting random images in their posts, and using those as featured images.
  2. They have enabled the option to select the first image of a post, and set that as the featured image. The option is in the Customizer under Content Options:

Capture_2022-04-13 at 08 43 41

What you expected to happen

The site should set the first image of a post as the featured image where this option is enabled.

What actually happened

While this option was respected until recently, the first image in a post is no longer being set as the featured image.

Context

This was a user's report in 4940725-zen

Simple, Atomic or both?

Simple

Theme-specific issue?

Rebalance theme (although this also seems to affect the Apostrophe 2 theme).

Browser, operating system and other notes

This does not appear to be browser or OS-specific. Given the related issue affecting the Apostrophe 2 theme, this report points to a recent, broader change to our platform that results in the Customizer option being ignored.

Reproducibility

Consistent

Severity

Most (> 50%)

Available workarounds?

Yes, difficult to implement

Workaround details

A workaround is to manually set the featured image in the post editor. This is not practical in sites with a large number of posts.

pauljacobson avatar Apr 13 '22 05:04 pauljacobson

Hello there. The follow-up ticket opened up and wanted to check in if we have any updates yet. Thanks! 4961419-zen

CodeAllNightNDay avatar May 04 '22 14:05 CodeAllNightNDay

I tried some testing on this bug to see if I could help here. I was able to recreate the issue in Rebalance on a Simple site. See the detailed steps below.

However, I then switched to Baskerville 2, Gazette, and Apostrophe 2, and the same error occurred across all these themes.

Steps to recreate

  1. Publish several posts, all with: the same recognizable 1st image, and additional images after that, and no featured image set.
  2. Under Appearance > Customize > Content Options, check the option Automatically use first image in post

Only one post did not show the correct image:

Markup 2022-05-11 at 16 26 26

As you can see below, it displayed one image from a gallery block instead:

Markup 2022-05-11 at 16 27 21

📌 ACTIONS

  • Transferred out of themes and back into wp-calypso for scrubbing across AT/Simple/Self-hosted

cuemarie avatar May 11 '22 23:05 cuemarie

This issue is reported for Apostrophe 2 here: https://github.com/Automattic/themes/issues/5827

cuemarie avatar May 11 '22 23:05 cuemarie

User from OP would like an update when this is resolved. Tickets from that user include:

  • 4940725-zd-woothemes
  • 4961419-zd-woothemes

cuemarie avatar May 11 '22 23:05 cuemarie

Reported here as well, on Dyad 2 theme: https://github.com/Automattic/wp-calypso/issues/63632

cuemarie avatar May 26 '22 18:05 cuemarie

Reported on Karuna theme here a few months ago: https://github.com/Automattic/wp-calypso/issues/57524

Ticket: 4422201-zd-woothemes Chat: 30909191-hc

cuemarie avatar May 26 '22 18:05 cuemarie

I believe I've found a similar - if not identical - issue here with the Hemingway Rewritten theme. I found that setting the Blog Display setting to Full Post actually showed the excerpt as well as the images: 42090609-hc

With that said, I couldn't replicate on a test site with the same theme.

ClassicRKR27 avatar Mar 29 '23 20:03 ClassicRKR27

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 4940725-zen
  • [ ] 4961419-zen
  • [ ] 4422201-zen

github-actions[bot] avatar Mar 29 '23 20:03 github-actions[bot]