Automattic / Automattic/jetpack
Content Options: Default 'false' for featured images on pages can affect WooCommerce shops
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
There is a specific case where setting the Content Options > Featured Images > Display On Pages option to false by default, with `'page-default' => false`, can cause this control to affect WooCommerce shop pages as well. This is only happening in themes that do not include WooCommerce support.
#### Steps to reproduce the issue
1. Start with a theme that has featured images set to false by default under Content Options, and does not include WooCommerce support. (On WP.com, this is only Apostrophe 2, though you can recreate it by removing WC support from a theme that sets featured images to false on pages, like Button 2).
2. Install WooCommerce and set up a shop.
3. View one of the archive pages (like /shop).
#### What I expected
That the product featured images would display on the /shop page, and that a page setting wouldn't affect it.
#### What happened instead
No images appear.
However, if you go to the Customizer > Content Options and check 'Display on pages' under 'Featured Images', the images will work on the /shop page again.
**Screenshots**
With featured images off on pages (the first product has a featured image):

This originally came up as an issue for Apostrophe 2: https://github.com/Automattic/themes/issues/641
With featured images on on pages:

Contributor guide
Research direction
Start by reproducing the issue through Content Options > Featured Images > Display On Pages with WooCommerce and a theme without WooCommerce support, then inspect the handling of the /shop archive. Done means product featured images display on WooCommerce shop pages regardless of the page default setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100