Automattic / Automattic/jetpack

Newsletter emails: Query Loop for custom post type is reset to posts in email content

Open
#38,919 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Subscriptions [Plugin] Jetpack [Pri] Normal Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

On WordCamp.org, we have custom post types for speakers, sessions, etc. They can be used in regular post content with the Query Loop block (for example, announcing speakers). When this is emailed out, the query loop does not show speaker names, but instead shows the latest posts on the site.

This post, for example, shows 6 speakers in the "group" taxonomy: https://us.wordcamp.org/2024/announcing-showcase-day-speakers-round-1/

But the email shows a list of latest posts.

Screenshot 2024-08-15 at 3 44 49 PM

It appears to be stripping both the custom post type and the taxonomy filter when rendering the email.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how newsletter emails render the Query Loop block, using the linked WordCamp example to compare regular post content with email output. Investigate preservation of the custom post type and the "group" taxonomy filter; done means the email lists the selected speakers rather than the site's latest posts.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.