Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Reader and subscription emails display incorrect content for jetpack-portfolio posts with Query Loops #90004

Open jp-imagines opened 7 months ago

jp-imagines commented 7 months ago

Quick summary

Initial report: 8112091-zd-a8c

If you create a post which includes a Query Loop set to display a custom post type (replicated with Jetpack portfolio "project" posts so far), the editor and live post will display the correct content. However, the new post subscription email and the post in the Reader will display the site's latest posts instead.

Steps to reproduce

  1. On a Public Simple site, activate portfolios: https://wordpress.com/support/portfolios/#activate-portfolios
  2. Create and publish a few portfolio projects.
  3. Create a new post.
  4. In the post content, add a Query Loop block.
  5. On the Query Loop block's settings, set the "Post Type" to "Project."
  6. Publish the post.

What you expected to happen

The new post email and the Reader should display the same content as the live post – i.e. the Query Loop section should show your portfolio projects.

What actually happened

Latest posts are shown instead, starting with the current post.

Test site's post:

AxQxfB.png

Test site's post in the Reader:

Wx4PlB.png

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple

Logs or notes

Replicated on Simple (pd3rCh-5p-p2). Unable to replicate on Atomic.

Workaround: Blog Posts blocks appear to work as expected, though there's obviously less customization potential for those blocks compared to Query Loops. Also, unlike Query Loops, Blog Posts blocks don't appear in subscription emails (but do display in the Reader).

github-actions[bot] commented 7 months ago

Support References

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

mrfoxtalbot commented 7 months ago

I can confirm this. Editor screen: Screenshot 2024-04-30 at 18 04 03

Email received:

Screenshot 2024-04-30 at 18 04 51