Skip to content

Allow featured images on Speakers/Organizers for block themes#1680

Open
dd32 wants to merge 1 commit intoWordPress:productionfrom
dd32:fix/claude/1343-speaker-featured-image-v2
Open

Allow featured images on Speakers/Organizers for block themes#1680
dd32 wants to merge 1 commit intoWordPress:productionfrom
dd32:fix/claude/1343-speaker-featured-image-v2

Conversation

@dd32
Copy link
Copy Markdown
Member

@dd32 dd32 commented Mar 24, 2026

Summary

  • Fixes featured images not being saved/displayed on Speaker and Organizer posts when using a block theme
  • The hide_featured_image_on_people filter was hiding the _thumbnail_id meta to prevent duplicate images on classic themes (where the avatar is auto-injected into content AND the theme template shows the featured image)
  • Block themes do not have this duplication issue because the avatar is not auto-injected and organizers control featured image display via templates
  • Added wp_is_block_theme() check to hide_featured_image_on_people() to bypass the filter on block themes

Closes #1343

Test plan

  • On a block theme site: edit a Speaker, set a featured image, save, reload - verify image persists
  • On a block theme site: verify the Featured Image block works for Speakers/Organizers
  • On a classic theme site: verify the old behavior (hiding featured images to prevent duplication) still works

🤖 Generated with Claude Code

…ess#1343)

Skip the hide_featured_image_on_people filter when the active theme is a
block theme. Block themes handle featured images via templates, so there
is no duplication with the auto-injected avatar (which is also not
injected on block themes).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dd32 dd32 added [Component] WC-Post-Types Organizers, Speakers, Sessions, Schedule, Sponsors, Volunteers [Type] Bug labels Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Component] WC-Post-Types Organizers, Speakers, Sessions, Schedule, Sponsors, Volunteers [Type] Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Featured image on Speakers CPT not saved

1 participant