Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Posts block can pullback CPTs not just Posts #58911

Closed
alanef opened this issue Feb 10, 2024 · 1 comment
Closed

Latest Posts block can pullback CPTs not just Posts #58911

alanef opened this issue Feb 10, 2024 · 1 comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Bug An existing feature does not function as intended

Comments

@alanef
Copy link

alanef commented Feb 10, 2024

Description

The Latest Posts block is designed to show just post but can pull back any CPT if category is specified and shared
WP Query
"If ‘tax_query‘ is set for a query, the default value becomes ‘any‘; "

Step-by-step reproduction instructions

  1. Add a CPT with 'taxonomies' => array( 'category', 'post_tag' ),
  2. add a post and CPT that shares a category
  3. add Latest Posts block
  4. selected the shared category

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.4.3

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@alanef alanef added the [Type] Bug An existing feature does not function as intended label Feb 10, 2024
@alanef
Copy link
Author

alanef commented Feb 11, 2024

On further investigation the block behaves as it should, so closing this,

@alanef alanef closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
@jordesign jordesign added the [Block] Latest Posts Affects the Latest Posts Block label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants