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

Design > Styles: this post type (undefined) does not support the author #68513

Open
4 of 6 tasks
carolinan opened this issue Jan 7, 2025 · 2 comments
Open
4 of 6 tasks
Labels
[Feature] Style Book [Type] Bug An existing feature does not function as intended

Comments

@carolinan
Copy link
Contributor

Description

In classic themes, if you go to Appearance > Design > Styles, the author and author name blocks are present in the preview, but they do not work.
The message that display is:
"This post type (undefined) does not support the author"

In block themes, if you go to Appearance > Editor > Styles and select the author block from the list of blocks, the same message shows.

Step-by-step reproduction instructions

See above.

Screenshots, screen recording, code snippet

Classic theme:
Error message showing when using a classic theme
Block theme:
Error message showing in the Site Editor when using a block theme

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@carolinan carolinan added [Type] Bug An existing feature does not function as intended [Feature] Style Book labels Jan 7, 2025
@im3dabasia
Copy link
Contributor

im3dabasia commented Jan 7, 2025

Thank you @carolinan for reporting this issue , I can confirm in Classic theme and Block theme, the Author and Author Name block are undefined

Classic theme
Image

Block theme

Image

@Mamaduka
Copy link
Member

Mamaduka commented Jan 7, 2025

This is a recent change see #67136.

It looks like Appearance > Editor > Styles doesn't populate the postId and postType context, while Editor > Styles sidebar > Stylebook does.

Screenshot

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Style Book [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants