You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this while building out a site. I'm currently reverting to use the [speakers] shortcode instead as I don't want to add the block to each session independently.
To reproduce
Steps to reproduce the behavior:
On Twenty Twenty-Three theme
Using FSE create a new Single Item template for the Sessions post type
Add the Session Speakers Block to the template
The block encounters a preview error and doesn't render.
Error in the console from minified JS (maybe helpful?)
An error occurred while running 'mapSelect': t(...) is undefined [index.js:183:12](webpack://wp/packages/data/build-module/components/use-select/@wordpress/data/src/components/use-select/index.js)
The block works as expected when added directly to a Session post. Perhaps it's not supposed to work in FSE?
If used in the post editor, these are valid and reflect the current post. If used in the template editor, these are null, and the block should display a placeholder value. This will display the placeholder value in the template editor regardless of sessions (published or not) on the site.
Fixes#829, fixes#832
If used in the post editor, these are valid and reflect the current post. If used in the template editor, these are null, and the block should display a placeholder value. This will display the placeholder value in the template editor regardless of sessions (published or not) on the site.
Fixes#829, fixes#832
Describe the bug
I noticed this while building out a site. I'm currently reverting to use the
[speakers]
shortcode instead as I don't want to add the block to each session independently.To reproduce
Steps to reproduce the behavior:
Error in the console from minified JS (maybe helpful?)
The block works as expected when added directly to a Session post. Perhaps it's not supposed to work in FSE?
Expected behavior
Block would render without error
Screenshots
WordCamp
https://phoenix.wordcamp.org/2023/wp-admin/site-editor.php?postType=wp_template&sidebar=%2F&postId=twentytwentythree%2F%2Fsingle-wcb_session
System (please complete the following information):
The text was updated successfully, but these errors were encountered: